#include<stdio.h>
int main()
{
int year=1;
int mouth=1;
printf("年份:\n月:\n");
scanf("%d%d",&year,&mouth);
if((year%4==0&&year%100!=0)||(year%400==0))
{
if(mouth==1||mouth==3||mouth==5||mouth==7||mouth==8||mouth==10||mouth==12)
{
printf("该月的天数是31天");
}
else if(mouth==4||mouth==6||mouth==9||mouth==11)
{
printf("该月的天数是30天");
}
else
{
printf("该月的天数是28天");
}
}
else
{
if(mouth==1||mouth==3||mouth==5||mouth==7||mouth==8||mouth==10||mouth==12)
{
printf("该月的天数是31天");
}
else if(mouth==4||mouth==6||mouth==9||mouth==11)
{
printf("该月的天数是30天");
}
else
{
printf("该月的天数是29天");
}
}
return 0;
}