1129: 第几天
import java.util.Scanner;
public class Main {
static Scanner cin = new Scanner(System.in);static int []m = {
0,31,28,31,30,31,30,31,31,30,31,30,31};public static void main(String[] args) {
String []s=cin.next().split("-");int year=Integer.parseInt(s[0]);int month=Integer.parseInt(s[1]);int day=Integer.parseInt(s[2]);if(year%400==0||year%4==0&&year%100!=0)m[2]++;int sum=0;for(int i=1;i<month;i++) sum+=m[i];sum+=day;System.out.println(sum);}
}