The Angle
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The angle between the hour and the minute hand is always among 0 and 180 degrees (including 0 and 180). For example, the angle between two hands of a clock at 12:00 is 0 while at 6:00 the angle is 180 degrees. Find the angle between the hands of a clock at some given time (from 12:00 till 11:59).
Input
Each line represents a separate test case and consists of two numbers: the first number stands for the hour (from 0 till 12) and the second stands for the minute (from 0 till 59). The input ends when two numbers are both zero.
Output
For each test case print in a separate line the minimum angle between the two hands in format given in the output.
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 20%