#include using namespace std; #define ll long long #define FOR(i,n,m) for(int i=(n);i<(m);i++) #define REP(i,n) FOR(i,0,n) #define REPR(i,n) for(int i=(n);i>=0;i--) #define all(vec) vec.begin(),vec.end() using vi=vector; using vvi=vector; using vl=vector; using vvl=vector; using P=pair; using PP=pair; using Pl=pair; using PPl=pair; using vs=vector; #define fi first #define se second #define pb push_back templatebool chmax(T &a,const T &b){if(abool chmin(T &a,const T &b){if(a>b){a=b;return true;}return false;} const ll MOD=1000000007LL; const int INF=1<<30; const ll LINF=1LL<<60; int day[]={31,28,31,30,31,30,31,31,30,31,30,31}; int cd(int a,int b,int c){ if((a%400==0||a%100&&a%4==0)&&b==2){ return 29; } return day[b-1]; } int main(){ int a,b,c; scanf("%d/%d/%d",&a,&b,&c); c+=2; if(c>cd(a,b,c)){ c-=cd(a,b,c); b++; } if(b>12){ b=1; a++; } printf("%d/%02d/%02d\n",a,b,c); return 0; }