import datetime def uru(n): if (n%4==0 and n%100!=0) or n%400==0: return True else: return False def solve(a,b,c): ans=[] if b==2 and c==27: if uru(a): year=str(a) month="02" day="29" ans=[year,month,day] print("/".join(ans)) return else: year=str(a) month="03" day="01" ans=[year,month,day] print("/".join(ans)) return now = datetime.datetime(a,b,c) now = now + datetime.timedelta(days=2) print(now.strftime("%Y/%m/%d")) return date=[int(x) for x in input().split("/")] solve(date[0],date[1],date[2])