#include<stdio.h>
int getDays(int year,int month);
int main()
{
int year=0,month=0;
scanf("%d%d",&year,&month);
printf("There are %d days in month %d year %d.\n",getDays(year,month),month,year);
return 0;
}
int getDays(int year,int month)
{
if((year%4==0&&year%100!=0)||(year%400==0))
{
switch(month)
{
case 1:return 31; break;
case 2:return 29; break;
case 3:return 31; break;
case 4:return 30; break;
case 5:return 31; break;
case 6:return 30; break;
case 7:return 31; break;
case 8:return 31; break;
case 9:return 30; break;
case 10:return 31;break;
case 11:return 30;break;
case 12:return 31;break;
}
}
else
{
switch(month)
{
case 1:return 31; break;
case 2:return 28; break;
case 3:return 31; break;
case 4:return 30; break;
case 5:return 31; break;
case 6:return 30; break;
case 7:return 31; break;
case 8:return 31; break;
case 9:return 30; break;
case 10:return 31;break;
case 11:return 30;break;
case 12:return 31;break;
}
}
}