ROLLBALL - The Rolling Ball

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


Added by:Chen Xiaohong
Date:2007-11-06
Time limit:0.200s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ADA95 ASM32 BASH BF C CSHARP CPP C99 CLPS LISP sbcl LISP clisp D FORTRAN HASK ICON ICK JAVA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON RUBY SCM guile SCM qobi ST WHITESPACE

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.