Clock's hands move with constant angular speeds and show h hours and m minutes.
Write the program to find number of full minutes till the nearest moment in which hands will coincide.
Исходные данные
Two numbers h (0<=h<=11) and m (0<=m<=59), separeated by space.
Результат
Number of full minutes.
Примеры
Исходные данные | Результат |
0 0 | 0 |
1 1 | 4 |
|