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



Sample input:
2017/01/07


Sample output:
2018/01/07

Submission status: Accepted

Solution code:
s = input()
if s[:3] != '2018':
  print('2018' + s[4:])
else:
  print(s)

Submission status: Accepted

Solution code:
s=list(input())

s[3]=8

print(*s,sep="")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(ss)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, math, itertools, bisect, copy, re
from collections import Counter, deque, defaultdict

# from itertools import accumulate, permutations, combinations, takewhile, compress, cycle
# from functools import reduce
# from math import ceil, floor, log10, log2, factorial
# from pprint import pprint

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

# N = int(input())
# N,M = [int(x) for x in input().split()]
# V = [[0] * 100 for _ in range(100)]
# A = [int(input()) for _ in range(N)]
# DP = [[0] * 100 for _ in range(100)]
# DP = defaultdict(lambda: float('inf'))


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC086
s = input()
q = s[:3] + '8' + s[4:]
print(q)

Submission status: Accepted

Solution code:
#85

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

print("".join(S))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

year = '2018'

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

print(date)

Submission status: Accepted

Solution code:
s = input()

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

print(news)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

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

Submission status: Accepted

Solution code:
import sys

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

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

    print("".join(s))

Submission status: Accepted

Solution code:
s = input()

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

print (ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# input
S = input()

# solve & output
print('2018' + S[4:])

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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)  # type: str
    solve(S)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

S = input()

# print(S)

# S[3] = '8'
# print(S[3])

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(''.join(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

S = input()

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

print (ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8
s = input()
print('2018/01/'+s[-2:])

Submission status: Accepted

Solution code:
#coding: utf-8
print(input().replace('2017','2018'))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# !/usr/bin python3
# -*- coding: UTF-8 -*=

s = input()

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

print(corrected)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline

s=input()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
num = input().split("/")
num[0] = 2018
a = str(num[0])
b = str(num[1])
c = str(num[2])
print(a + "/" + b + "/" +c)

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

Solution code:
#一文字ずつ区切る
chars = list(input())
#文字列で入っているぽい[2017/01/07]
#['2', '0', '1', '7', '/', '0', '1', '/', '0', '7']
# 文字を入れ替える
chars[3]="8"

# 文字を出力する
for s in chars:
  # スペーサーをなしに設定
  print(s, end ="")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


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

# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


abc()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
s = list(input())

s[3] = "8"

print("".join(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
inp = input()
# ans = inp.replace(inp[3],str(int(inp[3])+1))
ans = inp.replace(inp[:4],str(2018))
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

ls = []

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from functools import reduce
import math

def main():
    # 文字列の2進数を数値にする
    # '101' → '5'
    # 文字列の頭に'0b'をつけてint()にわたす
    # binary = int('0b'+'101',0)

    # 2進数で立っているbitを数える
    # 101(0x5) → 2
    # cnt_bit = bin(5).count('1')
    
    # N! を求める
    # f = math.factorial(N)

    # N の逆元
    # N_inv = pow(N,MOD-2,MOD)

    # nCr
    # Nの階乗 * rの階乗の逆元 * n-rの階乗の逆元
    
    # 切り捨て
    # 4 // 3
    # 切り上げ
    #-(-4 // 3)
    
    # 初期値用:十分大きい数(100億)
    INF = float("inf")

    # 大きな素数
    MOD = 10**9+7
    
    # 1文字のみを読み込み
    # 入力:2
    a = input().rstrip()
    # 変数:a='2'
    
    # スペース区切りで標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a, b, c, d = (int(_) for _ in input().split())  
    # 変数:a=2 b=4 c=5 d =7
    
    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a = list(int(_) for _ in input().split())
    # 変数:a = [2, 4, 5, 7]    

    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2457
    # a = list(int(_) for _ in input())
    # 変数:a = [2, 4, 5, 7]    
    
    print(a.replace('2017','2018'))
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
date = input("")

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

print(date_af)

Submission status: Accepted

Solution code:
a=(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# sys.stdin.readline()
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s = input()

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

print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s = input()
print("2018" + s[4:len(s)])

Submission status: Accepted

Solution code:
#!usr/bin/env python3
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

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

#B
def B():
    return

#C
def C():
    return

#D
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

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Accepted

Solution code:
#!usr/bin/env python3
import math

s = input()

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

Submission status: Accepted

Solution code:

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

S[0] = '2018'

print('/'.join(S))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math
import sys


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

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=str(input())

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

print(k)

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s1 = input()

s2 = ""

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

print(s2)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:

s = input()

#print(s)

#文字を置き換える
print(s.replace('2017', '2018'))

Submission status: Accepted

Solution code:

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


def submit():
    s = read_input()

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

if __name__ == '__main__':
    submit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()


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

print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC085A - Already 2018
print(input().replace("2017", "2018"))

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

Solution code:
S = [i for i in input()]
S[3] = '8'
print(''.join(S))

Submission status: Accepted

Solution code:
s=input()
c=""
for i in range(len(s)):
  if i==3:
    c+="8"
  else:
    c+=s[i]
print(c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y, m, d = input().split('/')

print("2018/01/", end='')
print(d)

Submission status: Accepted

Solution code:
s  = input()

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

Submission status: Accepted

Solution code:
S = input()

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

print(SS)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y, m, d = input().split('/')
y = '2018'
print(y + '/' + m + '/' + d)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
#codinf:UTF-8
s = input()
print(s.replace("2017","2018"))

Submission status: Accepted

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#085 A
S=input()
print("2018"+S[4:])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input().split('/')
print("2018/"+n[1]+'/'+n[2])

Submission status: Accepted

Solution code:
S = input()

S = list(S)

S[3]="8"

S = "".join(S)

print(S)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('8'.join(input().split('7',1)))

Submission status: Accepted

Solution code:
def main():
    print(input().replace('2017', '2018'))


main()