시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 256 MB 5 1 1 20.000%

## 문제

You are escaping from an enemy for some reason. The enemy is a sniper equipped with a high-tech laser gun, and you will be immediately defeated if you get shot. You are a very good runner, but just wondering how fast you have to run in order not to be shot by the sniper. The situation is as follows:

You and the sniper are on the xy-plane whose x-axis and y-axis are directed to the right and the top, respectively. You can assume that the plane is infinitely large, and that there is no obstacle that blocks the laser or your movement.

The sniper and the laser gun are at (0, 0) and cannot move from the initial location. The sniper can continuously rotate the laser gun by at most ω degrees per unit time, either clockwise or counterclockwise, and can change the direction of rotation at any time. The laser gun is initially directed θ degrees counterclockwise from the positive direction of the x-axis.

You are initially at (x, y) on the plane and can move in any direction at speed not more than v (you can arbitrarily determine the value of v since you are a very good runner). You will be shot by the sniper exactly when the laser gun is directed toward your position, that is, you can ignore the time that the laser reaches you from the laser gun. Assume that your body is a point and the laser is a half-line whose end point is (0, 0).

Find the maximum speed v at which you are shot by the sniper in finite time when you and the sniper behave optimally.

## 입력

The input consists of a single test case. The input contains four integers in a line, x, y, θ, and ω. The two integers x and y (0 ≤ |x|, |y| ≤ 1,000, (x, y) , (0, 0)) represent your initial position on the xy-plane. The integer θ (0 ≤ θ < 360) represents the initial direction of the laser gun: it is the counterclockwise angle in degrees from the positive direction of the x-axis. The integer ω (1 ≤ ω ≤ 100) is the angle which the laser gun can rotate in unit time. You can assume that you are not shot by the sniper at the initial position.

## 출력

Display a line containing the maximum speed v at which you are shot by the sniper in finite time. The absolute error or the relative error should be less than 10−6.

## 예제 입력 1

100 100 0 1


## 예제 출력 1

1.16699564