P27867 [洛谷] [GESP202303 Level 1] Days in a Month
普及-
题目描述

Problem Description

Xiao Ming has just learned how many days each month has and how to determine if a year is a common year or a leap year. He wonders if it's possible to use a programming method to find out how many days are in a given month. Can you do it?

Input Format

Input consists of a single line containing two integers, $A$ and $B$, representing the year and month of a date, respectively. It is assumed that $2000 \leq A \leq 3000$ and $1 \leq B \leq 12$.

Output Format

Output a single line containing an integer, which represents the number of days in the input month.

Sample Input and Output

Sample Input #1

2022 1

Sample Output #1

31

Sample Input #2

2020 2

Sample Output #2

29
输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
2022 1
样例输出
31