JMU F18 Week 4

Start

2018-09-21 18:30 UTC

JMU F18 Week 4

End

2018-09-27 20:00 UTC
The end is near!
Contest is over.
Not yet started.
Contest is starting in -53 days 1:57:23

Time elapsed

145:30:00

Time remaining

0:00:00

Problem D
Bazen

Mirko and Slavko have built a grand new pool in front of their weekend getaway. The pool is an isosceles right triangle, with legs of length 250.

\includegraphics[width=0.4\textwidth ]{triangle}

Everything was perfect, girls were coming, the DJ was coming, and the parties were wild. But, a problem arose when they started serving food at the parties. Mirko is vegetarian, while Slavko thinks a party without sausages is no party at all. Therefore they had to divide the pool into two parts. The pool is placed into a coordinate system (as in the figure above) and divided into two parts of equal area by a line segment with both endpoints on the edges of the pool.

Write a program that, given one endpoint of the dividing line segment, calculates the coordinates of the other endpoint.

Input

The first line contains two integers, the coordinates of one endpoint of the dividing line segment. That point will be on one of the edges of the pool.

Output

Output the coordinates of the other endpoint, rounded to two decimal digits.

Sample Input 1 Sample Output 1
0 0
125.00 125.00
Sample Input 2 Sample Output 2
230 20
0.00 114.13
Sample Input 3 Sample Output 3
0 40
148.81 101.19