#include #include #include using namespace std; int main(){ int a,b,c; char aa[2]; cin>>a>>aa[0]>>b>>aa[1]>>c; if(c>29 && (b==1 || b==3 || b==5 || b==7 || b==8 ||b==10 || b==12)){ c=(c+2)%31; b++; }else if(c>28 && ( b==4 || b==6 || b==9 ||b==11)){ c=(c+2)%30; b++; }else if(c>26 && b==2 &&(a%4!=0 || (a%4==0 && a%100==0 && a%400!=0))){ c=(c+2)%28; b++; }else if(c>27 && b==2 &&(a%4==0 && (a%100!=0 || a%400==0))){ c=(c+2)%29; b++; }else{ c=c+2; } if(b>12){ a++; b=1; } cout<