#include <iostream>
using namespace std;
int Getmonthday(int year, int month)
{
static int day[13] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 };
if (month > 2 && (year % 4 == 0 && year % 100 != 0 || year % 400 == 0))
return day[month - 1] + 1;
else
return day[month - 1];
}
int main()
{
int year, month, day;
cin >> year >> month >> day;
cout << Getmonthday(year, month) + day << endl;
}

京公网安备 11010502036488号