Integer
Integer-30
Integer-31
Integer-32
~/algor $ cat problems/soat-strelkalari-burchagi
Angles of the clock hands
Easy
1000 ms
64 MB
17%
$N$ seconds have passed since the start of the day. Find by how many degrees clockwise from the number $12$ the hour hand and the minute hand have turned. At the start of the day both hands point to $12$. The hands move uniformly: the hour hand makes a full turn ($360$ degrees) in $12$ hours, the minute hand in $60$ minutes.
Input
One integer $N$.
Output
One line with two integers: the angles of the hour hand and the minute hand, the integer part of the degrees (from $0$ to $359$).
Note
$0 \le N \le 86399$
Examples
Input #1
12000
Output #1
100 120
Input #2
45299
Output #2
17 209