
The angle between the hour and the minute hand is always between and degrees (including and ). For example, the angle between the two hands of a clock at is , while at the angle is degrees. Find the angle between the hands of a clock at a given time (from to ).
Each line represents a separate test case and consists of integers separated by a space: the first number stands for the hour (from to ), and the second stands for the minute (from to ). The input ends when both numbers are zero.
For each test case, print on a separate line the minimum angle between the two hands in the format given in the output example.
Example 1