The Angle#1125

The Angle

1 second
128 megabytes
Easy

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 ).

Input

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.

Output

For each test case, print on a separate line the minimum angle between the two hands in the format given in the output example.

Examples

Example 1

Loading
Loading