### COCI 2008/2009, Contest #6

## Task 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.

(0,250) |\ | \ | \ | \ | \ | \ | \ |_______\ (0,0) (250,0)

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.### Examples

## Input0 0 ## Output125.00 125.00 |
## Input230 20 ## Output0.00 114.13 |
## Input0 40 ## Output148.81 101.19 |

All Submissions

Best Solutions

**Point Value:** 10

**Time Limit:** 1.00s

**Memory Limit:** 32M

**Added:** Mar 10, 2009

**Languages Allowed:**

C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

## Comments (Search)

purohit3105on Mar 12, 2009 - 4:43:46 pm UTC So...Then you use that point to output another point on the opposite line which will make the area of the two new trianges equal to each other.. Am I right??

SourSpinachon Mar 12, 2009 - 8:03:31 pm UTC Re: So...