Find angle between hour and minute hand

MEDIUM

Given time in hh:mm format, find the shorter angle between hour and minute hand in an analog clock.

Example #1

Input

9:00

Output

90

Solution