游客 Signup | Login
中文 | En

2920 - 平闰年的天数

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

输入一个年号与月份,输出对应年月的天数。如2000年2月,则输出29天。

Input

一行:两个整数,一个代表年号Y,一个代表月份M。  1000<=Y<=3000,1<=M<=12

Output

一行:一个整数,代表对应的天数

Examples

Input Format

2000 2

Output Format

29