OC Practice Week 1

Start

2017-09-13 19:00 CEST

OC Practice Week 1

End

2017-09-20 19:00 CEST
The end is near!
Contest is over.
Not yet started.
Contest is starting in -72 days 12:45:23

Time elapsed

168:00:00

Time remaining

0:00:00

Problem B
Ladder

You are attempting to climb up the roof to fix some leaks, and have to go buy a ladder. The ladder needs to reach to the top of the wall, which is $h$ centimeters high, and in order to be steady enough for you to climb it, the ladder can be at an angle of at most $v$ degrees from the ground. How long does the ladder have to be?

Input

The input consists of a single line containing two integers $h$ and $v$, with meanings as described above. You may assume that $1 \le h \le 10000$ and that $1 \le v \le 89$.

Output

Write a single line containing the minimum possible length of the ladder in centimeters, rounded up to the nearest integer.

Sample Input 1 Sample Output 1
500 70
533
Sample Input 2 Sample Output 2
1000 10
5759