from sys import stdin

from itertools import combinations

from math import factorial

import numpy as np

import math



s = stdin.readline().rstrip()



print((s.replace("2017","2018")))
s = eval(input())



print(("2018"+s[4:]))
from sys import stdin
from itertools import combinations
from math import factorial
import numpy as np
import math

s = stdin.readline().rstrip()
print((s.replace("2017", "2018")))

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

-from sys import stdin -from itertools import combinations -from math import factorial -import numpy as np -import math - -s = stdin.readline().rstrip() -print((s.replace("2017", "2018"))) +s = eval(input()) +print(("2018" + s[4:]))