import java.util.Scanner;public class K612 {public static void main(String[] args) {Scanner a=new Scanner(System.in);//判断是一年里的第几天int days=0;System.out.println("输入年");int year=a.nextInt();System.out.println("输入月");int mounth=a.nextInt();System.out.println("输入日");int day=a.nextInt();switch(mounth){case 12:days+=day;case 11:days+=31;case 10:days+=30;case 9:days+=31;case 8:days+=31;case 7:days+=30;case 6:days+=31;case 5:days+=30;case 4:days+=31;case 3:days+=30;case 2:days+=31;case 1:days+=day;}
if(mounth>2){if(year%4==0&&year%100!=0||year%400==0){days++;}
}System.out.println("今天是"+year+"年"+mounth+"月"+day+"日"+"第"+days+"天");}
}