It is noon and Jordi notices that the hour and minute hands are overlapping. Jordi has to leave in minutes. What angle will the two hands form when he leaves?
The input consists of a single integer , with . It is guaranteed that is a multiple of 30.
Write an integer, the angle formed by the two hands in degrees.
Input
0 30 60 180 540 10080
Output
0 165 30 90 90 0