Given the time on the clock and the radius of the clock calculate the number of integral points that lie between the minute hand and the hour hand within the clock.
NOTE: To choose the sector take the clockwise angle from the minute hand to the hour hand.You have to also include the points that lie on the two hands and on the boundary of the sector. The clock is a cirlce of radius R.
INPUT:
The input consists of three space seperated integers H, M and R. H and M denote the time on the clock. R is the radius of the clock. (0,0) is the centre of the clock.
CONSTRAINTS:
\(0 \le H \le 12\)
\(0 \le M\le 60\)
\(1 \le R \le 1000\)
Problem setter : Sheldon Tauro
In the above testcase the points that lie between the clockwise angle from the minute to hour hand are:
1. (0,0)
2. (0,1)
3. (0,2)
4. (1,0)
5. (2,0)
6. (1,1)