In dreaming3000

Time Limit: 1000 ms

Memory Limit: 65535 ms

Description

     In the team of dreaming3000, between Bearjie, xiaoyoulei and zlly ,there exists one kind of strange debt relations: Bearjie owes xiaoyoulei 1000RMB, xiaoyoulei owes zlly 1000RMB, zlly owes Bearjie 1000RMB.One day, they met. Driven by their unwise mind and desperate desire for wanting the money back,  they decide to deal with it in a race . At first, the three respectively stand at the corresponding vertex of an equilateral triangle with its side length maesuring L. At a certain time , they simultaneously start the uniform motion at the speed V . Their movement's direction is like this: At every moment, the Bearjie movement's direction aims at the xiaoyoulei, xiaoyoulei movement's direction aims at the zlly, zlly movement's direction aims at Bearjie. In brief, all the time, the three are trying to approaching as fast as possible the person who owes to themselvs respectively the debt. Finally, they arrive at the identical spot, and has solved this conflict through peaceful talks. After WAVwind learns about this matter,he wants to write a report to publicize it. He needs to know S ,the length of the path for each person as well as the time T to get to the same point.

Input

There are two lines for input. The first line is a real number L(0<=L<=10^100).The second line is a real number V(0<=V<=10^100).

Output

There are two lines for output. The first line is a real number S, accurate to one digital after the point. The second line is a real number T , also accurate to one digital after the point.

Sample Input

13.05 
0.56 

Sample Output

8.7 
15.5 

Hint

You can use printf("%.1lf\n",ans); to print a real number "ans" with only one digital.

Source

NJUSTACMCONTEST--ZLLY

提交代码