Infinite Slides
시간 제한2초메모리 제한512 MB
반지름 1인 무한 나선을 같은 각속도로 도는 두 사람이 있고 Beata가 W초 늦게 출발할 때, 두 사람 사이 유클리드 거리의 최솟값을 구한다.
문제
Agneta and Beata are visiting the famous Swedish Amusement Park of Infinite Fun and Games. Their favourite attraction is the Infinitely Long Slides. Each slide can be viewed as an infinitely long, completely vertical spiral of radius .
When projected into the (flat) ground, the first slide has as its centre point, and the second one has as its centre point. Furthermore, the start of the slides are at and respectively, and then proceeds counter-clockwise around their respective centres. When Agneta rides her slide (the first one), she does so with vertical speed , while Beatas slide has a bit higher gradient, so she goes with vertical speed . However, their angular speeds around the centre is both equal to . Since Beata is a little afraid of the slides, she always waits for Agneta to go first. seconds after Agneta went, Beata starts her descent.
To make the infinite ride a bit more fun, the amusement park gives a price if the two riders on the slides manage to pass a ball between them at some point. This price consists of a lot of chocolate, which is Beata's favourite treat. To maximize their chances of passing the ball successfully, they want to wait until their Euclidean distance is the smallest possible during the ride. How small will this distance be?
입력
The first and only line of the input contains the decimal number . The number contains at most digits after the decimal point.
출력
Output a single number -- the minimal Euclidean distance between Agneta and Beata during their trip. Your answer will be accepted if it is within a relative or absolute error of of the judges' answer.