//希望我的回答对你的学习有帮助
#include
struct ymd {
int Y,M,D;
};
const short MonthDay[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int YMD_2_JD(int Y, int M, int D){
const short MonthDay[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int JD,i;
JD=D;
for (i=0;iif (((Y%4==0)&&(Y%100!=0)||(Y%400==0)) && (M>2)) JD++;
return JD;
}
int main() {
int d;
struct ymd a;
while(~scanf("%d%d%d",&a.Y,&a.M,&a.D)){
d=YMD_2_JD(a.Y,a.M,a.D);
printf("%d\n",d);
}
return 0;
}