220 - Midpoint

Midpoint

Time Limit: 1 sec

**The Problem**

- Any point in 2-D may be located by an ordered pair (x, y).
- The
**x-coordinate**, x, is the value on the x-axis vertically above or below the point. - The
**y-coordinate**, y, is the value on the y-axis horizontally right or left of the point.

Make a simple program that reads 4 variables named **x _{1}**,

**y**and

_{1}**x**,

_{2}**y**

_{2}**which are represent two points (**

**x**,

_{1}**y**) and (

_{1}**x**,

_{2}**y**). You task is to find the midpoint between 2 given points (

_{2}**x**,

_{1}**y**) and(

_{1}**x**,

_{2}**y**).

_{2}

**The Input**

The input file contains 4 integer numbers **x _{1}**,

**y**,

_{1}**x**, and

_{2}**y**(

_{2}**x**,

_{1}**y**,

_{1}**x**,

_{2}**y**< 1000).

_{2 }

**The Output**

Output will show two intiger values seperated by space which represend the midpoint in a separate line.

**Sample Input**

480 785 472 233

**Sample Output**

476 509

Problem Setter: Shahin ShamS