Number of days in a month#6279

Number of days in a month

1 second
64 megabytes
Very easy

Determine the number of days in the -th month of the -th year according to the Gregorian calendar.

Historical Note: In late 1582, Pope Gregory XIII introduced a calendar in Catholic countries where a year is considered a leap year if it is divisible by 4, but not divisible by 100, unless it is divisible by 400.

Input

Given and (1 \leq N \leq 12, 1 \leq M \leq 2100).

Output

Output the number of days in the specified month.

Examples

Example 1

Loading
Loading