S=list(input()) y=int(S[0]+S[1]+S[2]+S[3]) m=int(S[5]+S[6]) d=int(S[8]+S[9]) d=d+2 if( m==2): #閏年 if(y% 4 ==0 ): if(y % 100!=0): if(d>29): d=d-29 m=m+1 y=y else: d=d m=m y=y elif(y % 100 ==0 and y % 400 ==0): if(d>29): d=d-29 m=m+1 y=y else: d=d m=m y=y else: if(d>28): d=d-28 m=m+1 y=y else: d=d m=m y=y else: if(d>28): d=d-28 m=m+1 y=y else: d=d m=m y=y elif( m==4 or m==6 or m==9 or m==11): if(d>30): d=d-30 m=m+1 y=y else: d=d m=m+1 y=y elif( m==12): if(d>31): d=d-31 m=1 y=y+1 else: d=d m=m y=y else: if(d>31): d=d-31 m=m+1 y=y else: d=d m=m y=y print(y,end='') print('/',end='') if(m<10): print(0,end='') print(m,end='') else: print(m,end='') print('/',end='') if(d<10): print(0,end='') print(d) else: print(d)