Clock Math

#4N_RedWings1
Limits 1s, 512 MB

Given a time (hours as HH and minutes as MM), determine the smaller angle between the two hands of a clock showing the time and print it.

Input

The input will contain two integers: HH (0H<120 \le H < 12) and MM (0M<600 \le M < 60).

Output

Print the angle in degrees (positive and accurate to 10410^{-4}).

Sample

InputOutput
10 15
142.5000000

Submit

Login to submit.

Contributors

Statistics

86% Solution Ratio
allocophobiaEarliest, Nov '18
allocophobiaFastest, 0.0s
wasimur_01Lightest, 0 B
n4o847Shortest, 43B
Toph uses cookies. By continuing you agree to our Cookie Policy.