#include<stdio.h>
int main()
{
int year,month,days;
printf("please input year and month");
scanf("%d,%d",&year,&month);
if(month==1||month==3||month==5||month==7||month==8||month==10||month==12)
printf("days=31");
else if(month==2)
{
if((year%4==0)&&(year%100!=0)||(year%400==0))
printf("days=28");
else printf("days==29");
}
else
printf("days==30") ;
return 0;
}
int main()
{
int year,month,days;
printf("please input year and month");
scanf("%d,%d",&year,&month);
if(month==1||month==3||month==5||month==7||month==8||month==10||month==12)
printf("days=31");
else if(month==2)
{
if((year%4==0)&&(year%100!=0)||(year%400==0))
printf("days=28");
else printf("days==29");
}
else
printf("days==30") ;
return 0;
}