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] == '7':
    s = s[:3] + '8' + s[4:]
print(s)

Submission status: Accepted

Solution code:
y,m,d = map(str, input().split("/"))
print("{}/{}/{}".format(int(y)+1,m,d))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

print("2018/"+S[1]+"/"+S[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def LS2(): return list(sys.stdin.readline().rstrip())  #空白なし

S = LS2()

S[3] = '8'

print("".join(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())
s = "2018/01" + s[7:10]
print(s)

Submission status: Accepted

Solution code:
dateString = input()

print('2018/01/'+dateString[-2:])

Submission status: Accepted

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

print(s)

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="2018"+s[4:]
print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(modify)

Submission status: Accepted

Solution code:
import re
s=input()
print(re.sub(r'[0-9]{4}/([0-9]{2})/([0-9]{2})',r'2018/\1/\2',s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
s=input()
result=re.fullmatch(r'(\d{3})(\d)/(\d{2})/(\d{2})',s)
print(result.group(1)+'8/'+result.group(3)+'/'+result.group(4))

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(4100000)
import math
INF = 10**9

def main():
    S = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
s=input()
print(re.sub(r"2017",r"2018",s))

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip()

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

Submission status: Accepted

Solution code:
s=input()
# print(s)

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

Submission status: Accepted

Solution code:

s=list(input().split("/"))

# print(s)

print("2018/"+s[1]+"/"+s[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys
# import time
# import math
# import numpy as np
# import scipy.sparse.csgraph as cs            # csgraph_from_dense(ndarray, null_value=inf), bellman_ford(G, return_predecessors=True), dijkstra, floyd_warshall
# import random                                # random, uniform, randint, randrange, shuffle, sample
# import string                                # ascii_lowercase, ascii_uppercase, ascii_letters, digits, hexdigits
# import re                                    # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)
# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).
# from collections import deque                # deque class. deque(L): dq.append(x), dq.appendleft(x), dq.pop(), dq.popleft(), dq.rotate()
# from collections import defaultdict          # subclass of dict. defaultdict(facroty)
# from collections import Counter              # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)
# from datetime import date, datetime          # date.today(), date(year,month,day) => date obj; datetime.now(), datetime(year,month,day,hour,second,microsecond) => datetime obj; subtraction => timedelta obj
# from datetime.datetime import strptime       # strptime('2019/01/01 10:05:20', '%Y/%m/%d/ %H:%M:%S') returns datetime obj
# from datetime import timedelta               # td.days, td.seconds, td.microseconds, td.total_seconds(). abs function is also available.
# from copy import copy, deepcopy              # use deepcopy to copy multi-dimentional matrix without reference
# from functools import reduce                 # reduce(f, iter[, init])
# from functools import lru_cache              # @lrucache ...arguments of functions should be able to be keys of dict (e.g. list is not allowed)
# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).
# from heapq import nlargest, nsmallest        # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).
# from itertools import count, cycle, repeat   # count(start[,step]), cycle(iter), repeat(elm[,n])
# from itertools import groupby                # [(k, list(g)) for k, g in groupby('000112')] returns [('0',['0','0','0']), ('1',['1','1']), ('2',['2'])]
# from itertools import starmap                # starmap(pow, [[2,5], [3,2]]) returns [32, 9]
# from itertools import product, permutations  # product(iter, repeat=n), permutations(iter[,r])
# from itertools import combinations, combinations_with_replacement
# from itertools import accumulate             # accumulate(iter[, f])
# from operator import itemgetter              # itemgetter(1), itemgetter('key')
# from fractions import gcd                    # for Python 3.4 (previous contest @AtCoder)



def main():
    mod = 1000000007                # 10^9+7
    inf = float('inf')              # sys.float_info.max = 1.79...e+308
    # inf = 2 ** 64 - 1             # (for fast JIT compile in PyPy) 1.84...e+19
    sys.setrecursionlimit(10**6)    # 1000 -> 1000000
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    s = input()
    print('2018' + s[4:])


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

Solution code:
char = input()

index = 3
print(char[:index] + '8' + char[index + 1:])

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for _ in range(N)]
def dp2(ini, i, j): return [[ini]*i for _ in range(j)]
def dp3(ini, i, j, k): return [[[ini]*i for _ in range(j)] for _ in range(k)]
#import bisect #bisect.bisect_left(B, a)
#from collections import defaultdict #d = defaultdict(int) d[key] += value
#from itertools import accumulate #list(accumulate(A))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline

def main():
    a,b,c = read().split('/')
    if a == '2017':
        a = '2018'
    print("{}/{}/{}".format(a,b,c))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S = list(input())

S[3] = "8"
S = "".join(S)

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_2 = S.replace("2017","2018")
print(S_2)

Submission status: Accepted

Solution code:
# A - Already 2018
# https://atcoder.jp/contests/abc085/tasks/abc085_a

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

Submission status: Accepted

Solution code:
S = str(input())

a = S[:4]
b = S[4:]

if a == "2017":
    a = "2018"
    i = a + b
    print(i)
else:
    print(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
  resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
# input = sys.stdin.readline
sys.setrecursionlimit(10 ** 9)
MOD = 10 ** 9 + 7

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

print (''.join(S))

Submission status: Accepted

Solution code:
S = input()

ans = '2018' + S[4:]

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
from collections import *

S = list(input()[:-1])
S[3] = '8'
print(''.join(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

Solution code:
inf = 10 ** 15
mod = 10 ** 9 + 7

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x = list(input())
x[3] = "8"
print("".join(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(S)

Submission status: Accepted

Solution code:
import collections

#文字列を一文字ずつ取得したいとき
def inputStrOnebyOne():
    s = list(input())
    return s

#整数を一つずつリストに入れる
def inputOnebyOne_Int():
    a = list(int(x) for x in input().split())
    return a

def main():
    s = inputStrOnebyOne()
    s[3] = 8
    print(''.join(map(str,(s))))

if __name__=='__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li = list(input())
li[3] = '8'
print(*li, sep='')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
S = list(input())
S[3] = '8'
print(''.join(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

print("2018/01/{}{}".format(s[-2],s[-1]))

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s1, s2, s3 = input().split('/')
s = '2018' + '/' + s2 + '/' + s3
print(s)

Submission status: Accepted

Solution code:
a,b,c=map(str,input().split('/'))
a='2018'
print(a,b,c,sep='/')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

n=n[:3] + '8' + n[4:]

print(n)


#50itemshahahaha

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
# ABC085 A

def main():
    s = input()

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
#N, K = map(int, input().split())
# 文字列の入力
s = input()
#開業されたN個要素を受け付ける
#list = [input() for i in range(N)]

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
s = input()
print(re.sub('2017', '2018', s))

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':

    ABC_85_A()

Submission status: Accepted

Solution code:

s=list(input())
s[0:4]='2018'

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    #replaceで文字列を置き換え
    print(input().replace('2017', '2018', 1))
    #置き換え回数も指定できる。今回は必要なさそうだけど


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#文字列を受け取る
s = input()

#文字列を新しい変数に置き換え、新しいほうを書き換えして出力
print(s.replace('7', '8', 1))

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = list(map(str,input().split("/")))

if s[0] == "2017":
    s[0] = "2018"

print(s[0]+"/"+s[1]+"/"+s[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

S = input()
S = datetime.datetime.strptime(S, '%Y/%m/%d')



a = int(S.year)

if a != 2018:
    S = S.replace(2018)
    
print(S.strftime('%Y/%m/%d'))

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 5 + 10)
def input(): return sys.stdin.readline().strip()

def resolve():
    s=str(input())
    print('2018'+s[4:])

    
resolve()

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()

def resolve():
    s=input()
    print('2018'+s[4:])
resolve()

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = input()

new_date = "2018/01/" + date[-2:]

print(new_date)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 2問目類題2
s = input()
ss = s.replace("7","8",1)
print(ss)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = list(input())
A[3] = "8"
for a in A:
    print(a, end='')

Submission status: Accepted

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

Submission status: Accepted

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

S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    S =     _in[0]   # type:str
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    s = '2018'+S[4:]
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
year=int(S[:4])
year+=1
print(str(year)+"/"+S[5:])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = list(input().split("/"))

data[0] = "2018"
print("/".join(data))

Submission status: Accepted

Solution code:
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop

import collections

s = list(input())
if s[3] == "7":
    s[3] = "8"
ans = ""
for i in range(len(s)):
    ans += s[i]
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

ans = '2018/'+m+'/'+d

print(ans)

Submission status: Accepted

Solution code:

def resolve():
    # 整数 1 つ
    n = input()
    # 整数複数個
    # a, b, c = list(map(int, input().split()))
    # 整数 N 個 (改行区切り)
    # N = [int(input()) for i in range(N)]
    # 整数 N 個 (スペース区切り)
    # N = list(map(int, input().split()))
    # 整数 (縦 H 横 W の行列)
    # A = [list(map(int, input().split())) for i in range(H)]
    m = n[:3] + "8" + n[4:]

    print(m)


resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

S = input()

for i in range(3):
	print(S[i], end = "")
print("8",end = "")
for i in range(4,10):
	print(S[i], end = "")
print()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(S_changed)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=list(input())

a[3] = "8"
print("".join(a))

Submission status: Accepted

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

Submission status: Accepted

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

date[0] = '2018'

print('/'.join(date))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil,pi
#from operator import itemgetter
from copy import deepcopy
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [LI()for i in range(n)]
inf = 10**17
mod = 10**9 + 7

s=input()
u=list(s)
u[3]="8"
k="".join(u)
print(k)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
## io
IS = lambda: sys.stdin.readline().rstrip()
II = lambda: int(IS())
MII = lambda: list(map(int, IS().split()))
MIIZ = lambda: list(map(lambda x: x-1, MII()))
## dp
INIT_VAL = 0
MD2 = lambda d1,d2: [[INIT_VAL]*d2 for _ in range(d1)]
MD3 = lambda d1,d2,d3: [MD2(d2,d3) for _ in range(d1)]
## math
DIVC = lambda x,y: -(-x//y)
DIVF = lambda x,y: x//y

def main():
    print('2018'+IS()[4:])

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

print(S[:3]+ "8" + S[4:] )

Submission status: Accepted

Solution code:
S = list(input())

S[3] = "8"

print("".join(S))

Submission status: Accepted

Solution code:
import sys
## io
IS = lambda: sys.stdin.readline().rstrip()
II = lambda: int(IS())
MII = lambda: list(map(int, IS().split()))
MIIZ = lambda: list(map(lambda x: x-1, MII()))
## dp
INIT_VAL = 0
MD2 = lambda d1,d2: [[INIT_VAL]*d2 for _ in range(d1)]
MD3 = lambda d1,d2,d3: [MD2(d2,d3) for _ in range(d1)]
## math
DIVC = lambda x,y: -(-x//y)
DIVF = lambda x,y: x//y

def main():
    print('2018'+IS()[4:])

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1

def main():
    print('2018'+input()[4:])

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(int(a)+1,b,c,sep=("/"))

Submission status: Accepted

Solution code:
s = input()
res = []
for i in range(len(s)):
    if i == 3:
        res.append(8)
    
    else:
        res.append(s[i])
    
print("".join(map(str, res)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(input())
print("2018/01/"+N[-2]+N[-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

print("2018/" + S[5] + S[6] + S[7] + S[8] + S[9])

Submission status: Accepted

Solution code:
S = input()

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

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 = str(input())
print(s[:3] + "8" + s[4:])

Submission status: Accepted

Solution code:
S=str(input())
print('2018/'+S[5:10])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
datestr = input()

if (datestr[0:8] == '2017/01/'):
    ans = datestr.replace("2017",'2018')
    
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    date = input()
    print(date.replace("2017", "2018"))
main()

Submission status: Accepted

Solution code:
N = list(input())

N[3] = "8"

print("".join(N))

Submission status: Accepted

Solution code:
S = input()
print('2018/01/{}{}'.format(S[8], S[9]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

def resolve():
    S = input()
    print(S[:3]+'8'+S[4:])


if '__main__' == __name__:
    resolve()

Submission status: Accepted

Solution code:
x=input().split("/")
print("2018/{}/{}".format(x[1],x[2]))

Submission status: Accepted

Solution code:
s = input()
print("2018/01" + s[len("2017/01"):])

Submission status: Accepted

Solution code:
s = str(input())
nw = "2018/01/" + s[8:10]
print(nw)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# A - Already 2018
# 標準入力の取得
S = input()

# 求解処理
# 先頭4文字を"2018"に変更する
print("2018" + S[4:])

Submission status: Accepted

Solution code:
S = input()

ans = []

for i in range(len(S)):
    if i == 3:
        ans.append('8')
    else:
        ans.append(S[i])
        
print(''.join(ans))

Submission status: Accepted

Solution code:
S = input()
print(S.replace('17', '18'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

Solution code:
s = list(input())
s1 = "2018"
for i in range(4):
    s[i] = s1[i]

print("".join(s))

Submission status: Accepted

Solution code:
a = input()

a = list(str(a))
a[3]="8"
a="".join(a)

print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date_str = list(input())
date_str[3] = '8'

print(''.join(date_str))

Submission status: Accepted

Solution code:
date_str = list(input())

str = ''
done = False
for date in date_str:
    if not done and date == '7':
        str+= '8'
        done = True
    else:
        str+=date

print(str)

Submission status: Accepted

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

Submission status: Accepted

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

S[0] = "2018"
print("/".join(S))

Submission status: Accepted

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

Submission status: Accepted

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