s = input()

s = list(s)

s[3] = '8'

print(*s, sep="")

s = eval(input())

print(("2018/01/"+s[-2:]))
s = input()
s = list(s)
s[3] = "8"
print(*s, sep="")

s = eval(input())
print(("2018/01/" + s[-2:]))

-s = input() -s = list(s) -s[3] = "8" -print(*s, sep="") +s = eval(input()) +print(("2018/01/" + s[-2:]))