#include #define rep(i,n)for(int i=0;i<(n);i++) #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL 0x3f3f3f3f3f3f3f3f #define EPS (1e-10) using namespace std; typedef long long ll; typedef pairP; bool is_uruu(int y){ return y%4==0&&(y%100!=0||y%400==0); } int month[]{0,31,28,31,30,31,30,31,31,30,31,30,31}; signed main(){ int y,m,d;scanf("%d/%d/%d",&y,&m,&d); if(is_uruu(y))month[2]=29; d+=2; if(d>month[m]){ d-=month[m]; m++; if(m>12){ y++; m=1; } } printf("%d/%02d/%02d\n",y,m,d); }