#include <stdio.h>
int main(){
int year;
int month;
printf("Input the year and the month");
scanf("%d,%d",&year,&month);
if(month!=2){
if(month==1||month==3||month==5||month==7||month==8||month==10||month==12)
printf("The month has 31 days");
if(month==4||month==6||month==9||month==11)
printf("The month has 30 days");
}
if(month==2){
if(year%400==0||((year%100!=0)&&(year%4==0)))
printf("The month has 29 days");
else
printf("The month has 28 days");
}
system("pause");
}