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

~/algor $ cat problems/oy-kunlari-soni

Days in a month

Easy 1000 ms 64 MB 19%
Share

The number of a month $m$ of a non-leap year is given ($1 \le m \le 12$). Find the number of days in that month. February has $28$ days.

A calendar of the number of days in the months

Input

One integer $m$.

Output

One integer — the number of days in the month ($28$, $30$ or $31$).

Note

$1 \le m \le 12$
The year is not a leap year.

Examples

Input #1
1
Output #1
31
Input #2
2
Output #2
28

Sign in to submit a solution

Signing up is free and takes a minute.