ROLLBALL - The Rolling Ball

no tags 

A solid spherical ball of radius R rolls without slipping on the inside surface of a fixed cone, whose tip points downward. The half-angle at the vertex of the cone is u. Initial conditions have been set up so that the ball travels around the cone in a horizontal circle of radius l>R, with the points on the ball that touch the cone tracing out a circle on the ball.

Determine the radius of the circle of these contact points, if you want the sphere to travel around the cone as fast as possible.

Input

Each line of input has integers l (R < l <= 1000000) R (0 < R <= 1000) and u (0 < u < 90) given in degrees.

Output

For each line of input, output the radius of the circle of the contact points, round to integer.

Example

Input:
220000 100 29

Output:
46

Problemsetter --- Wu, Xiaogang


hide comments
Anshul Singhal: 2014-07-07 07:07:49

@Chen Xiaohong
can you please make the statement clear by drawing a small diagram for it


Added by:Chen Xiaohong
Date:2007-11-06
Time limit:0.200s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ERL JS-RHINO NODEJS PERL6 VB.NET