import java.util.Scanner;
public class peng2 {
public static void main(String[] args) {
int a;
int b;
int c=0;
int days;
int d=0;
int e = 0;
Scanner input = new Scanner(System.in);
do {
System.out.println("输入年:");
a = input.nextInt();
System.out.println("输入月:");
b = input.nextInt();
System.out.println("输入日:");
days = input.nextInt();
if (b < 0 || b > 12 || days < 0 || days > 31) {
System.out.println("input error!");
e = 1;
}
} while (e == 1);
for (int i = 1; i <b; i++) {
switch (i) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12: {
c = 31;
break;
}
case 4:
case 6:
case 9:
case 11: {
c = 30;
break;
}
case 2: {
if ((a % 100 !=0 &&a % 4 == 0) || (a % 100 == 0 && a%400==0)) {
c = 29;
} else {
c = 28;
}
}
default:
break;
}
d+=c;
}
System.out.println("这是"+a+"年的"+(d+days)+"天");
}
}