days_in_month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] Y,M,D = map(int,input().split("/")) D += 2 if Y%4 == 0 and not (Y%100 == 0 and Y%400 != 0): days_in_month[1] = 29 if days_in_month[M-1] < D: D -= days_in_month[M-1] M += 1 if M > 12: Y += 1 M = 1 print(str(Y).zfill(2)+"/"+str(M).zfill(2)+"/"+str(D).zfill(2))