#include using namespace std; using ll = long long; int days[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int Y, M, D; void tomorrow(int &y, int &m, int &d) { d++; if (d > days[m]) { d = 1; m++; if (m > 12) { y++; m = 1; } } } int main() { string s; cin >> s; sscanf(s.c_str(), "%d/%d/%d", &Y, &M, &D); if (Y % 4 == 0 && !(Y % 100 == 0 && Y % 400 != 0)) days[2] = 29; tomorrow(Y, M, D); tomorrow(Y, M, D); printf("%04d/%02d/%02d\n", Y, M, D); }