#include "bits/stdc++.h" using namespace std; int main() { int Y, M, D, X[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; char C; cin >> Y >> C >> M >> C >> D; if (M == 2 && D == 27) { if ((Y % 4 == 0 && Y % 100 != 0) || Y % 400) cout << Y << "/02/29" << endl; else cout << Y << "/03/01" << endl; } else if (M == 2 && D == 28) { if ((Y % 4 == 0 && Y % 100 != 0) || Y % 400) cout << Y << "/03/01" << endl; else cout << Y << "/03/02" << endl; } else { D += 2; if (D > X[M]) { D -= X[M]; M++; } if (M > 12) { M = M % 12; Y++; } cout << Y << "/" << std::setfill('0') << std::right << std::setw(2) << M << "/" << std::setfill('0') << std::right << std::setw(2) << D << endl; } }