#include<stdio.h>
int main()
{
int rui[12]={31,29,31,30,31,30,31,31,30,31,30,31};
int ping[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int ruiflag=0;
int day,month,year,sum=0;
printf("\nplease input year,month,day\n");
scanf("%d,%d,%d",&year,&month,&day);
if((year%4==0 &&year%100!=0) || year%400==0) ruiflag=1;
for(int index=0;index<month-1;index++)
{
if(ruiflag==1) sum+=rui[index];else sum+=ping[index];
}
sum+=day;
printf("it is the %d th day.",sum);
return 0;
}