Problem:
 Score : 100 points    Problem Statement On some day in January 2018 , Takaki is writing a document. The document has a column where the current date is written in yyyy/mm/dd format. For example, January 23 , 2018 should be written as 2018/01/23 .  After finishing the document, she noticed that she had mistakenly wrote 2017 at the beginning of the date column. Write a program that, when the string that Takaki wrote in the date column, S , is given as input, modifies the first four characters in S to 2018 and prints it.      Constraints  S is a string of length 10 .  The first eight characters in S are 2017/01/ .  The last two characters in S are digits and represent an integer between 1 and 31 (inclusive).         Input Input is given from Standard Input in the following format:  S       Output Replace the first four characters in S with 2018 and print it.        Sample Input 1 2017/01/07      Sample Output 1 2018/01/07       Sample Input 2 2017/01/31      Sample Output 2 2018/01/31

Solution (Python):
s = input()

ss = s.replace('2017','2018')

print(ss)

Solution (Python):
a,b,c = input().split('/')
print("2018"+"/"+b+"/"+c)

Solution (Python):
s = list(input()) 
s[3] = '8'
print(''.join(s))

Solution (Python):
import sys, math, itertools, bisect, copy, re
from collections import Counter, deque, defaultdict






INF = float('inf')
MOD = 10 ** 9 + 7
EPS = 10 ** -7
sys.setrecursionlimit(1000000)









S = input()
S2 = S.replace("2017","2018")
print(S2)

Solution (Python):
print(input().replace('2017','2018'))

Solution (Python):
a = input().split('/')
print('2018/' + a[1] + '/' + a[2])

Solution (Python):
s = input()

print( s[0:3] + "8" + s[4:10])

Solution (Python):
print(input().replace('2017','2018'))

Solution (Python):
s = input()
l = s.split('/')
print('/'.join(['2018', l[1], l[2]]))

Solution (Python):
n=input()
new=n.replace("2017","2018")
print(new)

Solution (Python):
print("2018" + input().rstrip("\n")[4:])

Solution (Python):
s=input().split('/')
s[0]=2018
print(str(s[0])+'/'+str(s[1])+'/'+str(s[2]))

Solution (Python):

s = input()
q = s[:3] + '8' + s[4:]
print(q)

Solution (Python):
print(input().replace('2017', '2018'))

Solution (Python):
print(input().replace("2017", "2018"))

Solution (Python):


S = list(input())
S[3] = "8"

print("".join(S))

Solution (Python):
date = input().split("/")
print(str(2018)+"/"+date[1]+"/"+date[2])

Solution (Python):
d = list(input())
d[:4] = '2018'
print(''.join(d))

Solution (Python):
print(input().replace("7","8",1))

Solution (Python):
S = str(input())

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

Solution (Python):
s = input()

print('2018' + s[4:])

Solution (Python):
s = input()
print(2018, s[4:],sep='')

Solution (Python):
s = input()
print('2018' + s[4:])

Solution (Python):
year, month, day = input().split('/')
print('2018/01/' + day)

Solution (Python):
s = input()
print('2018' + s[4:])

Solution (Python):
s = input()

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

Solution (Python):
a = input().split("/")

a[0]="2018"
print(a[0]+"/"+a[1]+"/"+a[2])

Solution (Python):
a = input().split("/")
print("2018/"+a[1]+"/"+a[2])

Solution (Python):
s = input()
print("2018" + s[4:len(s)])

Solution (Python):
s=input()

print('2018'+s[4:])

Solution (Python):
import re
s = str(input())
s_mod = re.sub('^\d{4}', "2018", s)
print(s_mod)

Solution (Python):
S = list(input().split("/"))
S[0] = "2018"
print("/".join(S))

Solution (Python):
s = input()
print('2018'+s[4:])

Solution (Python):
year, month, day = map(str, input().split('/'))

year = '2018'

date = year + '/' + month + '/' + day

print(date)

Solution (Python):
s = input()

news = s.replace("2017","2018")

print(news)

Solution (Python):
a,b,c, = input().split("/")
print("2018/"+b+"/"+c)

Solution (Python):
s = str(input())
print('2018' + s[4:])

Solution (Python):
S = str(input())
print(S.replace("2017","2018"))

Solution (Python):
s = input()
print(s[:3] + '8' + s[4:])

Solution (Python):
S = list(input())
S[3] = "8"
print("".join(S))

Solution (Python):
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac

setrecursionlimit(1000000)


def main():
	a = input()
	print(a[:3]+'8'+a[4:])

def zip(a):
	mae = a[0]
	ziparray = [mae]
	for i in range(1,len(a)):
		if(mae != a[i]):
			ziparray.append(a[i])
			mae = a[i]
	return ziparray

def is_prime(n):
	if n < 2: return False

	for k in range(2, int(math.sqrt(n)) + 1):
		if n % k == 0:
			return False

	return True

def list_replace(n,f,t):
	return [t if i==f else i for i in n]

def base_10_to_n(X, n):
	X_dumy = X
	out = ''
	while X_dumy>0:
		out = str(X_dumy%n)+out
		X_dumy = int(X_dumy/n)
	if(out == ''): return '0'
	return out

def gcd(l):
	x = l.pop()
	y = l.pop()
	while(x%y!=0):
		z = x%y
		x = y
		y = z
	l.append(min(x,y))
	return gcd(l) if len(l) > 1 else l[0]

class Queue():
	def __init__(self):
		self.q = deque([])
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.popleft()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class Stack():
	def __init__(self):
		self.q = []
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.pop()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class graph():
	def __init__(self):
		self.graph = defaultdict(list)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
		self.graph[t].append(f)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
		self.graph[t].remove(f)
	def linked(self,f):
		return self.graph[f]

class dgraph():
	def __init__(self):
		self.graph = defaultdict(set)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
	def linked(self,f):
		return self.graph[f]

main()

Solution (Python):
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac

setrecursionlimit(1000000)


def main():
	a = input()
	print(a[:3]+'8'+a[4:])

def zip(a):
	mae = a[0]
	ziparray = [mae]
	for i in range(1,len(a)):
		if(mae != a[i]):
			ziparray.append(a[i])
			mae = a[i]
	return ziparray

def is_prime(n):
	if n < 2: return False

	for k in range(2, int(math.sqrt(n)) + 1):
		if n % k == 0:
			return False

	return True

def list_replace(n,f,t):
	return [t if i==f else i for i in n]

def base_10_to_n(X, n):
	X_dumy = X
	out = ''
	while X_dumy>0:
		out = str(X_dumy%n)+out
		X_dumy = int(X_dumy/n)
	if(out == ''): return '0'
	return out

def gcd(l):
	x = l.pop()
	y = l.pop()
	while(x%y!=0):
		z = x%y
		x = y
		y = z
	l.append(min(x,y))
	return gcd(l) if len(l) > 1 else l[0]

class Queue():
	def __init__(self):
		self.q = deque([])
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.popleft()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class Stack():
	def __init__(self):
		self.q = []
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.pop()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class graph():
	def __init__(self):
		self.graph = defaultdict(list)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
		self.graph[t].append(f)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
		self.graph[t].remove(f)
	def linked(self,f):
		return self.graph[f]

class dgraph():
	def __init__(self):
		self.graph = defaultdict(set)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
	def linked(self,f):
		return self.graph[f]

main()

Solution (Python):
S = input()
print(S.replace('2017', '2018'))

Solution (Python):
S = input()
print(S.replace('2017','2018'))

Solution (Python):
print(input().replace('2017', '2018'))

Solution (Python):
x = input()
print(x.replace('7', '8', 1))

Solution (Python):
s = str(input())
print('2018/01/'+s[-2:])

Solution (Python):
s = input().rstrip()
print('2018' + s[4:])

Solution (Python):
S = input().split('/')
S[0] = "2018"
ans = '/'.join(S)
print(ans)

Solution (Python):
print(input().replace("2017", "2018"))

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

Solution (Python):
S = input()
print('2018'+S[4:])

Solution (Python):
s = input()
if s[3] == "7":
  s = s.replace("2017","2018")
print(s)

Solution (Python):
date = input().split('/')
date[0] = '2018'
print(date[0] + '/' + date[1] + '/' + date[2])

Solution (Python):
s = list(input().split('/'))
s[0] = '2018'
print('/'.join(s))

Solution (Python):
import sys
input = sys.stdin.readline

S = list(input().strip())

S[0] = "2"
S[1] = "0"
S[2] = "1"
S[3] = "8"
print("".join(S))

Solution (Python):
S=str(input())
A=S[4:]
print('2018'+A)

Solution (Python):
s=input()
print(s.replace('2017','2018'))

Solution (Python):
print(input().replace('7', '8', 1))

Solution (Python):
s = input()
print(s.replace("2017", "2018"))

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
print(input().replace("017","018"))

Solution (Python):
S = input()
S_list = [S[i:i+1] for i in range(len(S))]
S_list[3] = '8'
N = "".join(S_list)
print(N)

Solution (Python):
print(input(2018)[4:])

Solution (Python):
s=input()
print(s.replace("2017/01","2018/01"))

Solution (Python):
S = input()
if S[:4] != 2018:
    S1 = "2018"
    S2 = S[4:]    
print(S1+S2)

Solution (Python):
s = list(input().split('/'))
s[0] = '2018'
ans = '/'.join(s)
print(ans)

Solution (Python):
s = input(); print(s.replace('2017', '2018'))

Solution (Python):
d = str(input())
print('2018' + d[4:])

Solution (Python):
s=input()
print('2018'+s[4:])

Solution (Python):
S = input()
print(S[0:3] + "8" + S[4:11])

Solution (Python):
print(input().replace("2017", "2018"))

Solution (Python):
s = list(input())
s[3] = 8
for i in s:
    print(i, end = "")

Solution (Python):
s = str(input())
s1 = s.replace("7","8",1)
print(s1)

Solution (Python):
print(input().replace('2017', '2018'))

Solution (Python):
print(input().replace('7', '8',1))

Solution (Python):
print(input().replace('2017', '2018'))

Solution (Python):
s=input()
print(s.replace('2017', '2018'))

Solution (Python):
s = list(input())
s[3] = "8"

for i in s:
  print(i,end="")

Solution (Python):
a = input()
print(a.replace("2017/", "2018/"))

Solution (Python):
y,m,d = input().split("/")
y_list = list(y)
y_list[len(y)-1] = '8'
y = "".join(y_list)
print(y + "/"+m+"/"+d)

Solution (Python):
print( input().replace("2017","2018"))

Solution (Python):
S = input()
S = S[:3] + '8' + S[4:]
print(S)

Solution (Python):
S = str(input())
S = [i for i in S.split('/')]
if S[0] == '2017':
  S[0] = '2018'
print(S[0]+'/'+S[1]+'/'+S[2])

Solution (Python):
s=input()
print(s[:3]+'8'+s[4:])

Solution (Python):
s = input()
list_s = list(s)
list_s[:4] = ["2", "0", "1", "8"]
print("".join(list_s))

Solution (Python):
S = input().split('/')
S[0] = '2018'
print(S[0] + '/' + S[1] + '/' + S[2])

Solution (Python):
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    s = input()

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

Solution (Python):
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    s = list(input())
    s[3] = "8"

    print("".join(s))

Solution (Python):
s = input()
print(s.replace("7","8",1))

Solution (Python):
s = input()

ans = ""
for i in range(len(s)):
  if (i == 3):
    ans += "8"
  else:
    ans += s[i]
 

print (ans)

Solution (Python):



S = input()


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

Solution (Python):
s = input()

print(s.replace("2017", "2018"))

Solution (Python):
s = input()

print(s.replace('2017', '2018'))

Solution (Python):
s = input()
print('2018' + s[4:])

Solution (Python):
s = input()

print(s.replace('2017', '2018'))

Solution (Python):
S = input()
print(S[:3]+'8'+S[4:])

Solution (Python):
S = input()

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

Solution (Python):
a = input()
print(a.replace("2017/", "2018/"))

Solution (Python):
S = input()
print(S[0:3] + "8" + S[4:])

Solution (Python):
S=input()
print(S[:3]+"8"+S[4:])

Solution (Python):
s = input().strip()
print('2018' + s[4:])

Solution (Python):
s=input()
s=s.replace('7','8',1)
print(s)

Solution (Python):

import sys


def solve(S: str):
    print(S.replace('2017', '2018'))
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    S = next(tokens)  
    solve(S)


if __name__ == '__main__':
    main()

Solution (Python):



S = input()






s_replace = '8'
i = 3
S = S[:i] + s_replace + S[i + len(s_replace):]

print(S)

Solution (Python):
S=list(input())
S[3]="8"
print("".join(S))

Solution (Python):
S = list(input())
S[0] = "2"
S[1] = "0"
S[2] = "1"
S[3] = "8"
print("".join(S))

Solution (Python):
s = input()
print(s[:3] + "8" + s[4:])

Solution (Python):
s=input()
print(s[:3]+"8"+s[4:])

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

Solution (Python):
print(input().replace("2017", "2018"))

Solution (Python):
s = input()
s_list = s.split('/')
print('2018/' + s_list[1] + '/' + s_list[2])

Solution (Python):
row = input().split()
s = list(row[0])
s[3] = "8"

print(''.join(s))

Solution (Python):
S=input()
print(S[0:3]+'8'+S[4:])

Solution (Python):
S = input()
print(S.replace('2017/01/', '2018/01/'))

Solution (Python):
s = input()
a = '2018'+s[4:]
print(a)

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
print("2018"+input()[4::])

Solution (Python):
print(input().replace("017","018"))

Solution (Python):
x = input()
print("2018"+x[4:])

Solution (Python):
S=input()
print(S.replace("2017","2018"))

Solution (Python):
S=input()
print(S[:3]+"8"+S[4:])

Solution (Python):

S = input()

ans = S[:3]+ "8" + S[4:]

print (ans)

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

Solution (Python):
s=input()
print(s.replace("2017","2018"))

Solution (Python):
S = input().split('/')
print('/'.join(["2018",S[1],S[2]]))

Solution (Python):
print("2018"+input()[4:])

Solution (Python):

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

Solution (Python):

print(input().replace('2017','2018'))

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

Solution (Python):
Sin=str(input())
Sout='2018/01/'+Sin[8]+Sin[9]
print(Sout)

Solution (Python):
s = input()
print('2018'+s[4:])

Solution (Python):
s = list(input().split("/"))
print("2018",s[1],s[2],sep="/")

Solution (Python):



s = input()

corrected = '2018' + s[4:10]

print(corrected)

Solution (Python):
s = input()
fixed_s = "2018" + s[4:]
print(fixed_s)

Solution (Python):
S=str(input())
print(S.replace('2017','2018'))

Solution (Python):
S=str(input())
print(S[0:3],end='')
print(8,end='')
print(S[4:],end='')

Solution (Python):
import sys

input = sys.stdin.readline

s=input()

print("2018/01/" + s[8:])

Solution (Python):
S = input()
print(S.replace("2017", "2018"))

Solution (Python):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

S = s()
print('2018' + S[4:])

Solution (Python):
s = input()
print('2018' + s[4:])

Solution (Python):
s = input()
print('2018'+s[4:])

Solution (Python):
print(input().replace("2017", "2018"))

Solution (Python):
print(input().replace('017','018'))

Solution (Python):
print('2018'+input()[4:])

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

Solution (Python):
s = list(input())
s[3] = "8"
print("".join(s))

Solution (Python):


num = input().split("/")
num[0] = 2018
a = str(num[0])
b = str(num[1])
c = str(num[2])
print(a + "/" + b + "/" +c)

Solution (Python):
S = str(input())

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

Solution (Python):

chars = list(input())



chars[3]="8"


for s in chars:
  
  print(s, end ="")

Solution (Python):
S = input()

print('2018/01/' + S[8:])

Solution (Python):
s = input()
print(s[:3]+'8'+s[4:])

Solution (Python):

import sys


def solve(S: str):
    print(S.replace("2017","2018"))
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  
    solve(S)

if __name__ == '__main__':
    main()

Solution (Python):
s=input()
print(s[:3]+'8'+s[4:])

Solution (Python):
print("2018/01/"+input()[-2:])

Solution (Python):
s = input()

if s[:4] == "2017":
    s = s.replace(s[:4],"2018")
    
print(s)

Solution (Python):
print("2018/"+input()[5:])

Solution (Python):
print('2018'+str(input())[4:10])

Solution (Python):
s = input()
print('2018' + s[4:])

Solution (Python):
s=input().split("/")
print("2018"+"/"+s[1]+"/"+s[2])

Solution (Python):
def abc():
    s = input()
    print(s.replace(s[0:4], '2018'))


abc()

Solution (Python):
s = input().split("/")
s[0] = "2018"
print("/".join(s))

Solution (Python):
s = input()

print('2018' + s[4:])

Solution (Python):
ans = str(input())
print(ans.replace("2017", "2018"))

Solution (Python):
s = list(input().split('/'))
s[0] = '2018'
print('/'.join(s))

Solution (Python):
S = input()
print("2018/01/"+S[8:])

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

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

Solution (Python):
s = input()
print(s.replace('7', '8', 1))

Solution (Python):
S = input()
print(S[:3] + "8" + S[4:])

Solution (Python):
s = input()

print('2018'+s[4:])

Solution (Python):


print(input().replace('2017','2018'))

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

Solution (Python):
S = input()
print('2018' + S[4:])

Solution (Python):
print("2018/01/" + input()[-2:])

Solution (Python):
s = list(input())

s[3] = "8"

print("".join(s))

Solution (Python):
str = input()
print(str.replace('2017', '2018'))

Solution (Python):
print('2018'+input()[4:])

Solution (Python):
S = list(input())
S[:4] = '2018'
print("".join(S))

Solution (Python):
cal = input()
cal = cal.replace('2017','2018')
print(cal)

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

Solution (Python):
s=input();print(s[:3]+"8"+s[4:])

Solution (Python):
S = input()

S = S.replace(S[3], "8", 1)
print(S)

Solution (Python):
print ('2018'+str(input())[4:])

Solution (Python):
S = input()
S = list(S)
S[3] = '8'
S = ''.join(S)
print(S)

Solution (Python):
S = input()
print(S.replace('2017', '2018'))

Solution (Python):
s = list(input())
s[3] = "8"
t = ""
for i in range(10):
  t += s[i]
print(t)

Solution (Python):
s = input()

for i in s:
    j = s[0:4]
    if j == "2017":
        j = "2018" + s[4:]
    
print(j)

Solution (Python):
S = input()

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

Solution (Python):
S = input().split("/")
S[0] = 2018
s = map(str, S)
print("/".join(s))

Solution (Python):
S = input().split("/")
S[0] = 2018
s = map(str, S)
print("/".join(s))

Solution (Python):
s = input()
print(s.replace('2017', '2018'))

Solution (Python):
import math

def main():
    data = list(input())
    data[3] = '8'
    print(''.join(data))


if __name__ == '__main__':
    main()

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
d=input()
print(d.replace("2017","2018"))

Solution (Python):
if __name__ == '__main__':
    S = str(input())

    print(S.replace('2017/', '2018/'))

Solution (Python):
inp = input()

ans = inp.replace(inp[:4],str(2018))
print(ans)

Solution (Python):
s = input()
print(s[:3]+'8'+s[4:])

Solution (Python):
print("2018/01/"+input()[8:])

Solution (Python):
s = input()
print(s.replace("2017", "2018"))

Solution (Python):
a=input()
print(a.replace("7","8",1))

Solution (Python):
s = input()

ls = []

for i,j in enumerate(s):
    if i == 3:
        ls.append("8")
    else:
        ls.append(j)
        
print(''.join(ls))

Solution (Python):
s = str(input())
print(s.replace('2017', '2018'))

Solution (Python):
s = list(input())

print('2018/01/{0}{1}'.format(s[8],s[9]))

Solution (Python):
print(input(2018)[4:])

Solution (Python):
_, m, d = input().split("/")
print(2018, m, d, sep="/")

Solution (Python):

def main():
    S = input()
    print(S.replace("2017", "2018"))


if __name__ == "__main__":
    main()

Solution (Python):
s = input()
print('2018' + s[4:])

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    

    
    

    
    
    
    
    
    
    
    
    
    INF = float("inf")

    
    MOD = 10**9+7
    
    
    
    a = input().rstrip()
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    print(a.replace('2017','2018'))
    
if __name__ == '__main__':
    main()

Solution (Python):
s = list(input())
s[3] = "8"
print("".join(s))

Solution (Python):

listdate=list(input())
listdate[3]="8"
print("".join(listdate))

Solution (Python):
S = input().split('/')

S[0] = 2018
print(*S, sep='/')

Solution (Python):
date = input("")

date_af = date.replace("7", "8", 1)

print(date_af)

Solution (Python):
s=input()

print(s.replace("2017","2018"))

Solution (Python):
a=(input())

print(a[0:3]+"8"+a[4:])

Solution (Python):
s = input()
print('2018' + s[4:])

Solution (Python):
S=input()
print(S.replace('2017','2018'))

Solution (Python):
S = input().split('/')
S[0] = '2018'
new_S = '/'.join(S)
print(new_S)

Solution (Python):
print('2018'+input()[4:])

Solution (Python):
print(input().strip().replace("2017", "2018"))

Solution (Python):
y,m,d = input().split("/")
print("2018/"+m+"/"+d if y == "2017" else y+"/"+m+"/"+d)

Solution (Python):
l = input()
print("2018"+l[4:])

Solution (Python):
print(input().replace("2017","2018"))

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
s = input()
print(s.replace("2017","2018"))

Solution (Python):

import sys
input = sys.stdin.readline

print(input().replace('2017', '2018'))

Solution (Python):
s = input()
s = s.split("/",2)
s[0] = str(2018)
mojiretu = "/".join(s)
print(mojiretu)

Solution (Python):
a = input()

print(a.replace('2017', '2018'))

Solution (Python):
a = input()
print("2018"+a[4:])

Solution (Python):
s=input()
t=s[:3]+"8"+s[4:]
print(t)

Solution (Python):
s = input()

print(s.replace("2017", "2018"))

Solution (Python):
s=str(input())
print(s.replace("2017","2018"))

Solution (Python):
a,b,c = input().split('/')
print("{}/{}/{}".format(int(a) + 1, b, c))

Solution (Python):
S = input()
print(S.replace("2017", "2018"))

Solution (Python):
print(input().replace("2017","2018"))

Solution (Python):

s = input()

s = s.replace('2017','2018')

print(s)

Solution (Python):
s = list(input())
s[3] = '8'
print(''.join(s))

Solution (Python):
S = input()
s = list(S)
s[3] = "8"
print(*s, sep="")

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
s = input()
s = s[0:2] + "18" + s[4:]
print(s)

Solution (Python):
s = input()
print(s[:3] + "8" + s[4:])

Solution (Python):
S = input()
print(S[:3] + "8" + S[4:])

Solution (Python):
S = input()
print(S[:3]+"8"+S[4:])

Solution (Python):

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007


def A():
    s = S()
    s[3] = "8"
    print("".join(s))
    return


def B():
    return


def C():
    return


def D():
    n, h = LI()
    ab = LIR(n)
    ab.sort(reverse=True)
    amax = ab[0][0]
    ab.sort(key=lambda x: x[1], reverse=True)
    ans = 0
    hp = 0
    for a,b in ab:
        if b <= amax:
            break
        ans += 1
        hp += b
        if hp >= h:
            break
    ans += max(math.ceil((h-hp)/amax),0)    
    print(ans)
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

Solution (Python):

import math

s = input()

for i in range(len(s)):
    if i == 3:
        print(8,end='')
    else:
        print(s[i],end='')

Solution (Python):

S = input().split('/')

S[0] = '2018'

print('/'.join(S))

Solution (Python):
S = input()
print('2018'+S[4:])

Solution (Python):
a = input()
b = a[0:3] + '8' + a[4:]
print(b)

Solution (Python):
s=input()
print(s.replace("2017","2018"))

Solution (Python):
s = input()
print(s[0:3]+"8"+s[4:])

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

Solution (Python):
S=input()
s=S.split('/')
print('2018/'+s[1]+'/'+s[2])

Solution (Python):
s=input()
print(s.replace("2017","2018"))

Solution (Python):
from datetime import datetime

S = input()
L = datetime.strptime(S,'%Y/%m/%d')
print(L.strftime('2018/%m/%d'))

Solution (Python):
S = input()
print('2018' + S[4:])

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

Solution (Python):
from sys import stdin


def main():
    S = stdin.readline().rstrip()
    print(S.replace('2017/', '2018/'))


if __name__ == "__main__":
    main()

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

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

Solution (Python):
print('2018'+input()[4:])

Solution (Python):
import math
import sys


def input():
    return sys.stdin.readline()[:-1]








a, b, c = map(str, input().split("/"))
print(2018, b, c, sep="/")

Solution (Python):
S = input()

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

Solution (Python):
S = input()

print('2018{}'.format(S[4:]))

Solution (Python):
s = input()

print(s[0:3]+"8"+s[4:])

Solution (Python):
S = input()
print(S[:3] + "8" + S[4:])

Solution (Python):
S = input()
print(S.replace('2017', '2018'))

Solution (Python):
s = str(input())
print(s.replace("2017","2018"))

Solution (Python):
a=input()
a="2018"+a[4:]
print(a)

Solution (Python):
S=str(input())
 
k=S.replace("2017","2018")
 
print(k)

Solution (Python):
s=list(input())
s[3]='8'
print(''.join(s))

Solution (Python):
day = input()
day_r = day.replace("2017","2018")
print(day_r)

Solution (Python):
S=str(input())

k=S.replace("2017","2018")

print(k)

Solution (Python):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    s = input()
    print(s[:3] + '8' + s[4:])

solve()

Solution (Python):
S=str(input())
print(S.replace('7','8',1))

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
s1 = input()

s2 = ""

cnt = 0
for _ in s1:
  cnt += 1
  if cnt == 4:
    s2 += "8"
  else:
    s2 += _

print(s2)

Solution (Python):
s=list(input())
s[3]="8"
print("".join(s))

Solution (Python):
s = raw_input()
b = ""
a = -1
for i in range(10):
    a = a + 1
    if a == 3:
        b+="8"
    else:
        b+=s[a]
print b

Solution (Python):
a = input()
b = a[4:]
c = '2018'
print(c+b)

Solution (Python):
s = input().split("/")

if s[0] == "2017":
    print("2018"+ "/" + s[1] + "/" + s[2])
else:
     print(s[0] + "/" + s[1] + "/" + s[2])

Solution (Python):
print(input().replace('2017', '2018'))

Solution (Python):
s = input()
s = s.replace("2017", "2018")
print(s)

Solution (Python):
S=input().split('/')
S[0]='2018'
S='/'.join(S)
print(S)

Solution (Python):
S = input()

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

Solution (Python):
S = input()

S = S.replace('7','8',1)
print(S)

Solution (Python):
print(input().replace('2017','2018'))

Solution (Python):

s = input()




print(s.replace('2017', '2018'))

Solution (Python):
s = input()
s = s.replace("2017","2018")
print(s)

Solution (Python):

def read_input():
    s = input()
    return s


def submit():
    s = read_input()

    print('2018' + s[4:])

if __name__ == '__main__':
    submit()

Solution (Python):
date = input()
print("2018/01/"+date[8:])

Solution (Python):
S=input()
print("2018/01/"+S[8:])

Solution (Python):
s=input()
print('2018'+s[4:])

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

Solution (Python):
print(input().replace("2017/", "2018/"))

Solution (Python):
s=input()
print(s.replace("2017","2018"))

Solution (Python):
a, b, c = input().split("/")
d = a.replace("7","8")
print(d+"/"+b+"/"+c)

Solution (Python):
s=list(input())
s[3]="8"
print("".join(s))

Solution (Python):
s = input()
s = '2018' + s[4:]
print(s)

Solution (Python):
s = input()
print('2018'+s[4:])

Solution (Python):
s = input()

print('2018' + s[4:])

Solution (Python):
x = input()
print(x[:3]+"8"+x[4:])

Solution (Python):
n = input()
print(n.replace("2017","2018",1))

Solution (Python):
S = input().split('/')

S[0] = '2018'

print('/'.join(S))

Solution (Python):
s = input()


s = s.replace('7','8',1)

print(s)

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

Solution (Python):
S = input()
print(S.replace("2017", "2018"))

Solution (Python):
date = input()
print('2018'+date[4:])

Solution (Python):
s=input()
ans=s.replace("2017","2018")
print(ans)

Solution (Python):
s=input().split("/")
s[0]="2018"
ans=s[0]+"/"+s[1]+"/"+s[2]
print(ans)

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
print(input().replace("2017","2018"))

Solution (Python):
y, m, d = map(str,input().split('/'))

print('2018/'+m.zfill(2)+'/'+d.zfill(2))

Solution (Python):
S = list(str(input()))

ans = ''
y = ''

for index, s in enumerate(S):
  y += s
  if index == 3:
    ans = '2018'
    break
    
for s in S[4:]:
  ans += s
print(ans)

Solution (Python):
s = input()
print(s.replace('2017','2018'))

Solution (Python):
S = input()
print('2018' + S[4:])

Solution (Python):


s = input()

print(s[0:3] + '8' + s[4:])

Solution (Python):
print("2018"+input()[4:])

Solution (Python):
print("2018"+input()[4::])

Solution (Python):
a=input()
print(a[:3]+"8"+a[4:])

Solution (Python):
print(input().replace("017","018"))

Solution (Python):
S = input()
N = S.replace('7', '8', 1)
print(N)

Solution (Python):
s=input()
print(s[:3]+"8"+s[4:])

Solution (Python):
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


def inl():
    return list(map(int, input().split()))


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def inpm(line):
    return [inp() for _ in range(line)]


def inpfm(line):
    return [inpf() for _ in range(line)]


def inpsm(line):
    return [inps() for _ in range(line)]


def inlm(line):
    return [inl() for _ in range(line)]


def inlfm(line):
    return [inlf() for _ in range(line)]


def inlsm(line):
    return [inls() for _ in range(line)]


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper

s=list(input())
s[3] = '8'

print(''.join(s))

Solution (Python):
S = list(input())
print('2018/01/'+''.join(S[8:]))

Solution (Python):
date = [n for n in input()]
date[3]="8"
date = "".join(date)
print(date)

Solution (Python):
S = list(map(str, input().split("/")))
S[0] = "2018"
s = "/".join(S)
print(s)

Solution (Python):
S = list(input())
S[3] = '8'
print(''.join(S))

Solution (Python):

print(input().replace("2017", "2018"))