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.
Input
Two numbers h (0<=h<=11) and m (0<=m<=59), separeated by space.
Output
Number of full minutes.
Samples
|