Integer
Integer-29
Integer-30
Integer-31
~/algor $ cat problems/soatni-12-soatlikka-otkazish
From 24-hour to 12-hour clock
Easy
1000 ms
64 MB
17%
An hour $h$ is given in $24$-hour format (from $0$ to $23$). Find which number this hour shows on a $12$-hour clock face. The face has the numbers $1$ to $12$: both $0$ o'clock and $12$ o'clock show $12$, $13$ o'clock shows $1$ and $23$ o'clock shows $11$.
Input
One integer $h$.
Output
One positive integer from $1$ to $12$.
Note
$0 \le h \le 23$
Examples
Input #1
15
Output #1
3
Input #2
0
Output #2
12