#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; //#include int main() { string p; cin >> p; int y = 0, m = 0, d = 0; for (int i = 0; i < 4; i++) {y *= 10; y += (p[i] - '0') ; } m += (p[5] - '0') * 10 + p[6] - '0'; d += (p[8] - '0') * 10 + p[9] - '0'; int x[15] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 }; if (y % 4 == 0) {x[2] = 29; if (y % 100 == 0 && y % 400)x[2] = 28; } d += 2; if (d > x[m]) { d -= x[m]; m++; if (m > 12) { y++; m = 1; } } cout << y << "/" ; if (m < 10)cout << "0"; cout << m << "/"; if (d < 10)cout << "0"; cout<< d << endl; return 0; }