#!python # -*- coding: utf-8 -*- def is_uruu(y): if y % 4 == 0: if y % 100 == 0: if y % 400 == 0: return True return False return True return False def main(): Y, M, D = map(int, input().split('/')) m = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] if is_uruu(Y): m[1] = 29 D += 2 if D > m[M - 1]: D = D % m[M - 1] M += 1 if M > 12: Y += 1 M %= 12 print('{y:0>4}/{m:0>2}/{d:0>2}'.format(y=Y, m=M, d=D)) if __name__ == '__main__': main()