using namespace std;
struct date
{
int month;
int day;
int year;
};
int main()
{
date d;
cout<<"请输入年,月,日:"<<endl;
cin>>d.year>>d.month>>d.day;
int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
for(int i=1;i<d.month;i++)
{
d.day+=a[i];
}
if((d.year%400==0||(d.year%4==0&&d.year%100!=0))&&(d.month>=3))
{
d.day+=1;
}
cout<<"该日是该年的第"<<d.day<<"天"<<endl;
return 0;
}