/*
三天打鱼两天晒网”,问这个人在以后的某一天中是"打鱼"还是"晒网"
*/
#include<stdio.h>
int main()
{
int
array_leap[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int
array_run[12]={31,29,31,30,31,30,31,31,30,31,30,31};
int
year,mouth,day,sum=0,i,j,k;
scanf("%d%d%d",&year,&mouth,&day);
if(year%4==0&&year%100!=0||year%400==0)
{
for(i=0;i<mouth-1;i++)
{
sum+=array_run[i];
}
}
else
{
for(k=0;k<mouth-1;k++)
{
sum+=array_leap[k];
}
}
sum+=day;
if(sum%5>0&&sum%5<4)/*对5进行求余运算,大于0小于4则表示在打鱼,反之表示在晒网,因为后面规律全为0,1,2,3,4循环数列*/
{
printf("%d%d%d这一天是在打鱼",year,mouth,day);
}
else
{
printf("%d-%d-%d这一天是在晒网\n",year,mouth,day);
}
return
0;
}