#include "bits/stdc++.h" //#include //#include //#include using namespace std; #define repi(i,a,b) for(int i=(a), i##_len=(b); i ivec; typedef vector svec; typedef vector> ivvec; typedef pair P; const int dx8[8] = { 0,1,1,1,0,-1,-1,-1 }, dy8[8] = { 1,1,0,-1,-1,-1,0,1 }, dx4[4] = { 0,1,0,-1 }, dy4[4] = { 1,0,-1,0 }; templateinline bool maxi(T &a, const T &b) { if (ainline bool mini(T &a, const T &b) { if (b inline int f(string s, int n) { return s[n] - '0'; } int main() { cin.tie(0); ios::sync_with_stdio(0); int ds[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; bool uru = 0; lint y, m, d; string s; cin >> s; y = f(s, 0) * 1000 + f(s, 1) * 100 + f(s, 2) * 10 + f(s, 3); m = f(s, 5) * 10 + f(s, 6); d = f(s, 8) * 10 + f(s, 9); if (!(y % 4))uru = 1; if (!(y % 100)) uru = 0; if (!(y % 400))uru = 1; if (uru)ds[1] = 29; d += 2; if (d > ds[m - 1]) { d -= ds[m - 1]; m++; if (m > 12) { m = 1; y++; } } cout << y << "/" << setfill('0') << setw(2) << m << "/" << setfill('0') << setw(2) << d << el; gc(); }