Skip to main content

~/algor $ cat contests/round-7/T

T. Midpoint of a segment

Problem T ICPC rules 1000 ms 64 MB

The endpoints of a segment on the plane are given: and . Find the coordinates of its midpoint :

Segment AB on the coordinate plane and its midpoint M; AM and MB are equal

Input

One line with four integers: , , and .

Output

One line with two numbers: and , each with exactly 1 digit after the decimal point (for example, 2.0). If the rounded result is zero (for example, ), print 0.0 (not -0.0).

Note

Examples

Input #1
0 0 4 2
Output #1
2.0 1.0
Input #2
-3 1 2 -4
Output #2
-0.5 -1.5

Sign in to submit a solution

Signing up is free and takes a minute.