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

Submission status: Accepted

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

Submission status: Accepted

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

date_str = input()

res = date_str.replace("2017", "2018")

print(res)

Submission status: Accepted

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

S="2018"+S[4:]

print(S)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('2018{}'.format(''.join(list(input())[4:])))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=raw_input()
T=S.split("/")
print "2018/"+T[1]+"/"+T[2]

Submission status: Accepted

Solution code:
year,month,date =input().split("/")
year = 2018
print(str(year)+"/"+month+"/"+date)

Submission status: Accepted

Solution code:

S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = input('')
sub_date = date[4:]
print('2018{0}'.format(sub_date))

Submission status: Accepted

Solution code:
S = input()

if S[0:7] == "2017/01":
    answer = "2018" + S[4:]
    print(answer)

Submission status: Accepted

Solution code:
s = list(input())
s[3]="8"
s_new=[s[0]]
for i in s[1:]:
    s_new[0] = s_new[0]+i
print(s_new[0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 = input();print(s.replace('2017', '2018'))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
day = input()
str_day = list(day)
if str_day[3]=='7':
   str_day[3] = '8'
str_changed = ''.join(str_day)
print(str_changed)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
src = input()

dst = src.replace('2017', '2018')
print(dst)

Submission status: Accepted

Solution code:
#coding: utf-8
S = list(input())
S[3] ="8"
for i in S:
    print(i,end="")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(rep)

Submission status: Accepted

Solution code:
s=list(input())
s.pop(3)
s.insert(3,"8")
print("".join(s))

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

s = arr_data[0][0]

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

Submission status: Accepted

Solution code:
d=input()
print(d.replace('7/','8/'))

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()
y, m, d = S.split('/')
print('{}/{}/{}'.format('2018', m, d))

Submission status: Accepted

Solution code:

S=list(input())
date=str(2018)+S[4]+S[5]+S[6]+S[7]+S[8]+S[9]

print(date)

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

s = list(ns())
s[:4] = "2018"
print("".join(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(S)

Submission status: Accepted

Solution code:
s=list(input())
print('2018',end='')
for i in range(4,10):
  print(s[i],end='')
print('')

Submission status: Accepted

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

Submission status: Accepted

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

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    current_date = str(input())

    modified_date = current_date.replace("2017", "2018")
    print(modified_date)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input()).split("/")
a = s[1]
b = s[2]

print("2018/" + str(a) + "/" + str(b))

Submission status: Accepted

Solution code:
N=input()
M=['2018']
for i in range(5,11):
    M.append(N[i-1])
print(''.join(M))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
S = input()
print("2018" + S[4:])

Submission status: Accepted

Solution code:
y,m,d = [int(s) for s in raw_input().split('/')]
print "%04d/%02d/%02d" % (y+1,m,d)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y,m,d=map(str,input().split('/'))
y=2018
print('{0}/{1}/{2}'.format(y,m,d))

Submission status: Accepted

Solution code:
Y, M, D = (int(i) for i in input().split("/"))
print("%04d/%02d/%02d" % (2018, M, D))

Submission status: Accepted

Solution code:
def main():
    S = input().strip()
    return "2018" + S[4:]
    
if __name__ == '__main__':
    print(main())

Submission status: Accepted

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

Submission status: Accepted

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

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:
a,b,c=map(str,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:
s = input()
print('2018/{0}'.format(s[5:]))

Submission status: Accepted

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

import sys

def main():
    print(sys.stdin.readline().strip().replace('2017', '2018'))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

year, mon, day = input().split('/')
if year != 2018:
    year = 2018
print('{0}/{1}/{2}'.format(year,mon,day))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    day = input()
    print("2018" + day[4:])


if __name__ == '__main__':
    main()

Submission status: Accepted

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

import sys

s = raw_input().split()[0]
ans = '2018/01/' + s[8:]
sys.stdout.write('%s\n' % (ans))
sys.stdout.flush()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()
print("2018" + str.lstrip("2017"))

Submission status: Accepted

Solution code:
str = input()
print("2018" + str.lstrip("2017"))

Submission status: Accepted

Solution code:
S = input()
print(S.replace("7", "8", 1)) # .replace(old, new[, count])

if __name__ != "__main__":
    pass

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()
print('2018{0:s}'.format(str[4:]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
https://beta.atcoder.jp/contests/abc085/tasks/abc085_a

"""
import sys
from sys import stdin
input = stdin.readline


def solve(S):
    return S[:3] + '8' + S[4:]


def main(args):
    S = input().strip()
    ans = solve(S)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

from datetime import datetime, timedelta

S = str(input())
wrong_day = datetime.strptime(S, '%Y/%m/%d')
correct_day = wrong_day + timedelta(days=365)
print(correct_day.strftime('%Y/%m/%d'))

Submission status: Accepted

Solution code:
a = input()
#print(a)                                                                                                     
year,month,day=a.split('/')
if(int(year)==2017):
    year=2018
print(int(year),'/',month,'/',day,sep='')

Submission status: Accepted

Solution code:
#coding : utf-8

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

Submission status: Accepted

Solution code:
x = raw_input()
print '2018' + x[4:]

Submission status: Accepted

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

b = ""
b = "/".join(a)
print(b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf_8
""" abc085a """

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#日付
num = list(input())
num[3] = "8"
print("".join(num))

Submission status: Accepted

Solution code:
import re
ipt = input()
regText = r"(\d{4})/(\d{2})/(\d{2})"
repl = r"2018/\2/\3"
print(re.sub(regText,repl,ipt))

Submission status: Accepted

Solution code:
import math
import numpy as np
from operator import mul

# 整数Nを桁ごとのリストにする
# l = [int(x) for x in list(str(N))]

Y, M, D = input().split('/')
Y = str(2018)
print(Y + '/' + M + '/' + D)

Submission status: Accepted

Solution code:
x = list(input().strip().split('/'))
x[0] = 2018

print(str(x[0])+'/'+str(x[1])+'/'+str(x[2]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


import re 

print(re.sub("2017/01", "2018/01", input()))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = a.split("/")
b[0] = "2018"

c = ""
c = "/".join(b)
print(c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
indate = input().split('/')
outdate = ['2018'] + indate[1:3]
print('/'.join(outdate))

Submission status: Accepted

Solution code:
def solve(inputstr):
  ans = '2018' + inputstr[4:]
  return ans

if __name__ == '__main__':
  inputstr = input()
  ans = solve(inputstr)
  print(ans, flush=True)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# ABC085 A - Already 2018

str1 = input()
str2 = str1.replace("2017","2018")
print(str2)

Submission status: Accepted

Solution code:
print '2018/01/' + raw_input()[-2:]

Submission status: Accepted

Solution code:
S = input()
a = [S[i:+i+1] for i in range(len(S))]
a[3] = "8"
correct = ""
for i in range(len(a)):
    correct = correct + a[i]

print(correct)

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

solve()

Submission status: Accepted

Solution code:
#coding:utf-8
m = input().split("/")
m[0] = "2018"
print("/".join(m))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_str = input()

print("2018{0}".format(input_str[4:]))

Submission status: Accepted

Solution code:
def main():
    s = input()
    print(s[:2]+'18'+s[4:])	
	
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import numpy as np
import pdb


def main():
    mystring = list(raw_input())
    corrected = correction(mystring)
    print ''.join(corrected)
    pass

def correction(mystring):
    mystring[0:4]= ['2', '0','1', '8']
    return mystring

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
year = input().split("/")
# print(year)
year[0] = 2018
year = map(str, year)
# joinを使うときはstrに変換しなければならない
# 便利なjoinですが、注意点があります。
# joinでリストを連結して文字列にできるのは、
# 元のリストを構成する要素が「すべて文字列の場合」です。
year = "/".join(year)
print(year)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

b = s.split('/')

b[0] = b[0].replace('7','8')

print('/'.join(b))

Submission status: Accepted

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

Submission status: Accepted

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

print(s)

Submission status: Accepted

Solution code:
S = input()

back = S[4:]

print("2018" + back)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(S)

Submission status: Accepted

Solution code:
import sys

if __name__ == '__main__':
    str = input()
    print('2018{}'.format(str[4:]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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

Submission status: Accepted

Solution code:
while True:
    try:
        days = input().split("/")
        days[0] = days[0].replace("7", "8")
        print("/".join(days))
    except EOFError:
        break

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()
print('2018/' + s[5:])

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
S = input()
print('2018' + S[4:])

Submission status: Accepted

Solution code:
s = input()
s = s.replace('7','8',1)
print(s)
#print(s[0:3] + "8" + s[4:])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt, floor
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache, reduce
from operator import xor
from heapq import heappush, heappop
INF = float("inf")
sys.setrecursionlimit(10**7)

# 4近傍（右, 下, 左, 上）
dy4, dx4 = [0, -1, 0, 1], [1, 0, -1, 0]


def inside(y: int, x: int, H: int, W: int) -> bool: return 0 <= y < H and 0 <= x < W
def ceil(a, b):return (a + b - 1) // b


def solve(S):
    S = list(S)
    S[3] = "8"
    return "".join(S)


def main():
    S = input()
    print(solve(S))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

S[3] = "8"

print("".join(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#abc085a

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
s=input()
print(s[:3]+'8'+s[4:])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

S = list(S)

S[3] = '8'

S_changed = "".join(S)
print(S_changed)

Submission status: Accepted

Solution code:
S = input()

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

print(dest)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
s = input()
s = s[:3]+"8"+s[4:]
print(s)

Submission status: Accepted

Solution code:
S = raw_input('')
a = '2018/01/'
b = S[8:]
print a+b

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
date = input()
# 出力
print("2018", date[4:], sep="")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_line1 = raw_input()
str_list = list(input_line1)
str_list[3]="8"
str_changed = "".join(str_list)
print(str_changed)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime
import sys

input_date = sys.stdin.read(10)
old_date = datetime.datetime.strptime(input_date, '%Y/%m/%d')
new_date = old_date.replace(old_date.year + 1)
out_date = "{0:%Y/%m/%d}".format(new_date)
print(out_date)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = [int(e) for e in input().split('/')]
print('2018/{:02d}/{:02d}'.format(date[1], date[2]))

Submission status: Accepted

Solution code:
A = input()
print("2018{}".format(A[4:]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = str(input())

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

Submission status: Accepted

Solution code:
# coding: utf-8
import numpy

N = input()
N_list = list(N)
map(str,N_list)
N_list[3] = "8"

ans = ''.join(N_list)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re

S = raw_input()

S = re.sub('^2017', '2018', S)

print S

Submission status: Accepted

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

solve()

Submission status: Accepted

Solution code:
a = input()
year, month, day = a.split('/')
year = '2018'
print('{}/{}/{}'.format(year, month, day))

Submission status: Accepted

Solution code:
S = input()
s = S.split("/")   #"/"で区切る

y = s[0]
m = s[1]
d = s[2]

y = "2018"

print( y + "/" + m + "/" + d)

Submission status: Accepted

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

S = input()

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
a = input().strip()
a = a[:3]+'8'+a[4:]
print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input().split('/')
n[0] = str(int(n[0]) + 1)

print('/'.join(n))

Submission status: Accepted

Solution code:
s=input()

data = s.split('/')
out = '2018/01/'+data[2]

print(out)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
S = str(input())
a = S[0]
b = S[1]
c = S[2]
d = S[3]
f = S[5]
g = S[6]
i = S[8]
j = S[9]
D = int(d) + 1
print(str(a)+str(b)+str(c)+str(D)+"/"+str(f)+str(g)+"/"+str(i)+str(j))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=list(map(str, input().split('/')))

S[0]=2018

Sp="{0}/{1}/{2}".format(S[0],S[1],S[2])
print(Sp)

Submission status: Accepted

Solution code:
i = input()
print(i[:3], '8', i[4:], sep='')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys,collections
sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

print('2018/{}/{}'.format(s[1],s[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
for i in range(len(S)):
    if i !=3:
        print(S[i],end="")
    else:
        print("8",end="")
print()

Submission status: Accepted

Solution code:
l = map(str, raw_input().split("/"))
l[0] = "2018"
print "/".join(l)

Submission status: Accepted

Solution code:
# coding=utf-8

if __name__ == '__main__':

    S = input()

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

Submission status: Accepted

Solution code:
s = list(str(input()))
s[3] = 8
ans = ""
for i in s:
    ans += str(i)
print(ans)

Submission status: Accepted

Solution code:
def main():
    N = input()
    d = N.split('/')
    print('2018', d[1], d[2], sep='/')

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

Sl = list(S)

Sl[3] = '8'

Sc = "".join(Sl)

print(Sc)

Submission status: Accepted

Solution code:
from pprint import pprint as pp

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

Submission status: Accepted

Solution code:
a=input().split('/')
a[0]=int(a[0])+1

print(str(a[0])+'/'+a[1]+'/'+a[2])

Submission status: Accepted

Solution code:
S = raw_input()
Slist=S.split("/")
print "2018/"+Slist[1]+"/"+Slist[2]

Submission status: Accepted

Solution code:
S = input()

S = S.replace("2017/01/","2018/01/")

print(S)

Submission status: Accepted

Solution code:
Ss = input()

print(Ss[:3] + '8' + Ss[4:])

Submission status: Accepted

Solution code:
# スペース区切りの整数の入力
S1, S2, S3 = input().split("/")
S1 = "2018"

text = S1 + '/' + S2 + '/' + S3

print(text)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S= str(input())

ans = '2018'+S[4:]

print(ans)

Submission status: Accepted

Solution code:
a=input()

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

Submission status: Accepted

Solution code:
inputs = input().split("/")
if inputs[0] is not '2018':
    inputs[0] = "2018"
print("/".join(inputs))

Submission status: Accepted

Solution code:
import math
#A,B,C,D = map(int,input().split())
S = input().split("/")

#S[3] = "8"
S = "2018" + "/" + S[1] + "/"+S[2] 
print(S)

Submission status: Accepted

Solution code:
a = list(input())
a[3] = "8"
print(a[0]+a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8]+a[9])

Submission status: Accepted

Solution code:
print "2018%s"%(raw_input()[4:])

Submission status: Accepted

Solution code:
a = list(input())
a[3]='8'
temp = ''
for i in a:
  temp += i
print(temp)

Submission status: Accepted

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

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'
print("".join(s))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
S=input()
sl = list(S)
sl[3]='8'
str_changed = "".join(sl)
print(str_changed)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = raw_input()

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

print S

Submission status: Accepted

Solution code:
str = input()

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
s = list(input())
factor = [2,0,1,8]
for index in range(4):
    s[index] = str(factor[index])
print(''.join(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
s = str(input())

s = list(s)

s[0] = '2'
s[1] = '0'
s[2] = '1'
s[3] = '8'

print(''.join(s))

Submission status: Accepted

Solution code:
import sys
 
stdin = sys.stdin
ns = lambda: stdin.readline()

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

Submission status: Accepted

Solution code:
s = list(input())
s[3]="8"
st=""
for c in s:
    st +=c
print(st)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = input().split('/')
print('{}/{}/{}'.format('2018', s[1], s[2]))

Submission status: Accepted

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