#include #include #include using namespace std; void run(); int main() { run(); return EXIT_SUCCESS; } void run() { int y,m,d; scanf("%d/%d/%d",&y,&m,&d); int day[] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; if((y%4==0&&!(y%100==0 && y%400!=0))){ day[2]=29; } d+=2; if(day[m]