#include using namespace std; using uint = unsigned int; using ll = long long; using ull = unsigned long long; template using V = vector; template using VV = V>; template using VVV = V>; template using VVVV = VV>; #define rep(i,n) for(ll i=0ll;i void chmin(T& t, const U& u) { if (t > u) t = u; } template void chmax(T& t, const U& u) { if (t < u) t = u; } // cin.tie(nullptr); // ios::sync_with_stdio(false); // cout << fixed << setprecision(20); void solve(){ V v = {0,31,28,31,30,31,30,31,31,30,31,30,31}; string s; cin >> s; ll y = stoll(s.substr(0,4)); ll m = stoll(s.substr(5, 2)); ll d = stoll(s.substr(8, 2)); if(y%4==0) if(y%100||y%400==0) v[2]++; d += 2; if(v[m] < d){ d -= v[m]; m++; } if(m>=13){ y++; m = 1; } cout << y << "/"; if(m<10) cout << "0"; cout << m << "/"; if(d<10) cout << "0"; cout << d << endl; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int t=1; // cin >> t; rep(i,t) solve(); }