Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/yil-choragi

Quarter of the year

Easy 1000 ms 64 MB 19%
Share

The number of a month $m$ is given. Determine which quarter of the year the month is in: quarter $1$ — months $1$, $2$, $3$; quarter $2$ — months $4$, $5$, $6$; quarter $3$ — months $7$, $8$, $9$; quarter $4$ — months $10$, $11$, $12$.

Twelve months split into four quarters; the quarter of the given month highlighted

Input

One integer $m$.

Output

One integer — the quarter number.

Note

$1 \le m \le 12$

Examples

Input #1
5
Output #1
2
Input #2
12
Output #2
4

Sign in to submit a solution

Signing up is free and takes a minute.