import re

S = list(input())

S[3] = "8"

out = ""

for s in S:

  out += s

print(out)



S = input()

print("2018"+S[4:])

import re

S = list(input())
S[3] = "8"
out = ""
for s in S:
    out += s
print(out)

S = input()
print("2018" + S[4:])

-import re - -S = list(input()) -S[3] = "8" -out = "" -for s in S: -    out += s -print(out) +S = input() +print("2018" + S[4:])