LogiQuest

161. Clock Angle

EasyGeometry

Print the smaller angle in degrees between the hour and minute hands at h:m, with exactly one decimal place.

Input format

A single line: h m

Output format

The angle, e.g. 7.5

Example 1

Input

3 15

Output

7.5

Example 2

Input

12 0

Output

0.0

Constraints

1 ≤ h ≤ 12 0 ≤ m ≤ 59

Read input from standard input and print the answer to standard output. Your code is judged against 5 test cases, most of them hidden.

Loading the MyLoginn IDE…