P29400 [洛谷] [COCI2008-2009#6] BAZEN
入门
题目描述

Problem Description

In a coordinate plane, there is an isosceles right triangle with legs of length $250$ positioned as shown in the figure. You need to draw a line segment that divides the area of the triangle into two equal parts, with both endpoints of the segment lying on the edges of the triangle.

Given the starting coordinates of this line segment, find the coordinates where the endpoint should be.

Input Format

The input consists of a single line with two integers representing the starting coordinates of the line segment.

Output Format

Output a single line with two real numbers representing the coordinates of the endpoint of the line segment. Since the answer may not be an integer, round it to two decimal places. This problem uses a Special Judge (SPJ).

Sample Input and Output

Sample Input #1

0 0

Sample Output #1

125.00 125.00

Sample Input #2

230 20

Sample Output #2

0.00 114.13

Sample Input #3

0 40

Sample Output #3

148.81 101.19

Notes

Translated from COCI2008-2009 CONTEST #6 T2 BAZEN.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
0 0
样例输出
125.00 125.00