y,m,d=list(map(int,input().split("/"))) d+=2 if m in [1,3,5,7,8,10,12] and d>31: d,m=d-31,m+1 elif m in [4,6,9,11] and d>30: d,m=d-30,m+1 elif (d>29 and y%4==0 and y%100!=0) or (d>29 and y%4==0 and y%100==0 and y%400==0): d,m=d-29,m+1 elif (d>28 and y%4==0 and y%100==0 and y%400!=0): d,m=d-28,m+1 if m>12: m,y=m-12,y+1 def f(n): if n<10: return "0"+str(n) return str(n) print(f(y)+"/"+f(m)+"/"+f(d))