#include using namespace std; #define REP(i,n) for(int i=0; i #define VLL vector #define VVI vector> #define VVLL vector> #define VC vector #define VS vector #define VVC vector> #define fore(i,a) for(auto &i:a) typedef long long ll; typedef pair P; template bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } const int INF = 2147483647; const ll INFL = 9223372036854775807; const ll mod = 1000000007; int main() { int y, m, d; scanf("%d/%d/%d", &y, &m, &d); d += 2; VI month = { 0,31,28,31,30,31,30,31,31,30,31,30,31 }; if (y % 4 == 0) { if (y % 100 == 0 && y % 400 != 0); else month[2]++; } if (month[m] < d) { d -= month[m]; m++; } if (m > 12)m -= 12, y++; cout << setw(4) << setfill('0') << y << '/'; cout << setw(2) << setfill('0') << m << '/'; cout << setw(2) << setfill('0') << d << endl;; return 0; }