#include #include int main() { int year, month, day; int next_arrival(int, int, int); while (scanf("%d %d %d", &year, &month, &day) != EOF) { int res = next_arrival(year, month, day); printf("%d\n", res); } return EXIT_SUCCESS; }