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

Submission status: Accepted

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

Submission status: Accepted

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

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
sys.setrecursionlimit(10**6)

s = list(str(input()))
s[:4] = list("2018")

print("".join(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 文字列の入力
s = input()
print(s.replace("2017","2018"))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = list(input())
date[3] = "8"
print("".join(map(str, date)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date_str = input()

new_data = date_str.replace('2017', '2018')
print(new_data)

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:
S = input()
print("2018/01/" + S[8:10])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = list(input())
    S[:4] = "2018"

    print("".join(S))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(f"{2018}{input()[4:]}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = input()

date_list = list(date)
date_list[3] = '8'
output = ''.join(date_list)

print(output)

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
a = int(s[0])*1000+int(s[1])*100+int(s[2])*10+int(s[3])+1
b = s[4]+s[5]+s[6]+s[7]+s[8]+s[9] 
print(str(a)+b)

Submission status: Accepted

Solution code:
S = input()

# count=1 にする
print(S.replace('7', '8', 1))

Submission status: Accepted

Solution code:
S = input()
 
# Pythonでは S[3]='8' のような操作は許されないので間接的な方法を用いる
print(S[:3] + '8' + S[-6:])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    S = input()
    print(S[:3] + "8" + S[4:])


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

Solution code:
# vim: fileencoding=utf-8


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

S = list(input())

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

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:
S = str(input())

print(S.replace(S[0:4],"2018"))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ss = input()

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

Submission status: Accepted

Solution code:
from collections import defaultdict,deque
import math
def main():
    n = input()
    print(n[0:3]+"8"+n[4:])

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

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 = list(input())
S[3] = "8"

print("".join(S))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
S = str(input())

if '2017/01/' == S[:8]:
    print('2018/01/{}'.format(S[8:]))

Submission status: Accepted

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

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:
s = input()

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

Submission status: Accepted

Solution code:
#
# abc085 a
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """2017/01/07"""
        output = """2018/01/07"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """2017/01/31"""
        output = """2018/01/31"""
        self.assertIO(input, output)


def resolve():
    print(input().replace("7", "8", 1))


if __name__ == "__main__":
    # unittest.main()
    resolve()

Submission status: Accepted

Solution code:
s = input()

a = s[5] + s[6]
b = s[8] + s[9]

d = "2018/" + a + "/" + b

print(d)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li = list(input())

li[3] = '8'
s = ''.join(li)

print(s)

Submission status: Accepted

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

str_s=''.join(map(str,S))

print(str_s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
	S = input()

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

  
if __name__ == "__main__":
  	main()

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [int(input()) for _ in range(n)]

s = list(input())

s[3] = "8"

print("".join(s))

Submission status: Accepted

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

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:

def main():
    s = input()
    print(s.replace('2017', '2018'))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


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


if __name__ == '__main__':
    main()

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:
S=input()
S_array=S.split('/')
print('2018/'+S_array[1]+'/'+S_array[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()

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

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()

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

print(N)

Submission status: Accepted

Solution code:
S,T,U=input().split("/")
print("2018/"+T+"/"+U)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
a=int(s[0:4])
print(str(a+1)+s[4:])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# # Make IO faster
# import sys
# input = sys.stdin.readline

# # get single (or) multiple str
# X = input()

# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]

# from IPython import embed; embed(); exit();

# 全部入り
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
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
import numpy as np
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()
print(S.replace("2017", "2018"))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
day=S[-6:]
print("2018"+day)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()

b="2018"+a[4:]

print(b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())

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

Submission status: Accepted

Solution code:
#input template
from sys import stdin, stdout
cin = stdin.readline
cout = stdout.write
mp = lambda: list(map(int, cin().split()))

def chars(): #function for taking string input as character array since string in python is immutable
    s = cin()
    return(list(s[:len(s) - 1]))

#print list	
def pl(a):	
	for val in a:
		cout(val)
		
#main

s = chars()
s[3] = '8'
pl(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
#-------------
S = input().split("/")
#-------------
S = list(S)
print("2018" + "/" + S[1] + "/" + S[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
I = input()
import re
ans = re.sub(r'^2017', '2018', I)
print(ans , flush=True)

Submission status: Accepted

Solution code:
s1, s2, s3 = input().split("/")

s1 = 2018

print(s1, s2, s3, sep="/")

Submission status: Accepted

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


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
D = list(input())

D[3] = 8

map = map(str,D)

print(''.join(map))

Submission status: Accepted

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

sys.setrecursionlimit(10 ** 5)
input = sys.stdin.readline
mod = 1000000007
inf = float("INF")


def II(): return int(input().rstrip())


def IF(): return float(input().rstrip())


def IS(): return str(input().rstrip())


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


def LI_(): return list(map(lambda x: int(x) - 1, input().rstrip().split()))


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


def S(): return input().rstrip()


def LS(): return S().split()


# 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)]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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"
S="".join(S)
print(S)

Submission status: Accepted

Solution code:
import bisect, collections, copy, heapq, itertools, math, string, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = float('inf')
def I(): return int(input())
def F(): return float(input())
def SS(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LSS(): return input().split()

def resolve():
    S = SS()

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

if __name__ == '__main__':
    resolve()

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

Solution code:
year = "2018"

S = input()
ans = year + S[4:]
print(ans)

Submission status: Accepted

Solution code:
#n=int(input())
#a,b=map(int,input().split())
#l=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]
s=list(input())
s[3]='8'
print("".join(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
print(str(int(s[:4]) + 1) +  s[4:])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import bisect
import copy
import heapq
import math
import sys
from collections import *
from functools import lru_cache
from itertools import accumulate, combinations, permutations, product
def input():
    return sys.stdin.readline()[:-1]
def ruiseki(lst):
    return [0]+list(accumulate(lst))
sys.setrecursionlimit(500000)
mod=pow(10,9)+7
al=[chr(ord('a') + i) for i in range(26)]
direction=[[1,0],[0,1],[-1,0],[0,-1]]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

#print(S[0])

ans = S.replace('2017','2018') #置換

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

print('2018/{}'.format(s[5:]))

Submission status: Accepted

Solution code:
# coding: utf-8

input_ = input()

dd = input_[-2:]

print('2018/01/' + dd)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
print("2018{}".format(input()[4:]))

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:

# input
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
###==================================================
### import
#import bisect
#from collections import Counter, deque, defaultdict
#from copy import deepcopy
#from functools import reduce, lru_cache
#from heapq import heappush, heappop
#import itertools
#import math
#import string
import sys
### stdin
def input(): return sys.stdin.readline()
def iIn(): return int(input())
def iInM(): return map(int, input().split())
def iInM1(): return map(int1, input().split())
def iInLH(): return list(map(int, input().split()))
def iInLH1(): return list(map(int1, input().split()))
def iInLV(n): return [iIn() for _ in range(n)]
def iInLV1(n): return [iIn()-1 for _ in range(n)]
def iInLD(n): return [iInLH() for _ in range(n)]
def iInLD1(n): return [iInLH1() for _ in range(n)]
def sInLH(): return list(input().split())
def sInLV(n): return [input().rstrip('\n') for _ in range(n)]
def sInLD(n): return [sInLH() for _ in range(n)]
### stdout
def OutH(lst, deli=' '): print(deli.join(map(str, lst)))
def OutV(lst): print('\n'.join(map(str, lst)))
### setting
sys.setrecursionlimit(10 ** 6)
### utils
int1 = lambda x: int(x) - 1
### constants
INF = int(1e9)
MOD = 1000000007
dx = (-1, 0, 1, 0)
dy = (0, -1, 0, 1)
###---------------------------------------------------

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

Submission status: Accepted

Solution code:
import sys
S = input()
if len(S) != 10:
    sys.exit()
if S[0:8] != '2017/01/':
    sys.exit()
if not (1 <= int(S[-2:]) <= 31):
    sys.exit()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

S = list(input())

S[3] = "8"

print("".join(S))

Submission status: Accepted

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

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:
print('2018/01/' + input()[-2:])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

S = list(s())
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()

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

print(S)

Submission status: Accepted

Solution code:
S = input()

s1 = "2018"

s2 = S[4:]

s = s1 + s2

print(s)

Submission status: Accepted

Solution code:

a = list(input())
a[3]=8
print(*a, sep='')

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

s = list(str(input()))

s[3] = '8'

print(*s,sep='')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def X(): return list(input())
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
    date = list(str(input()))
    date[3] = '8'
    ans = ''
    for i in date:
        ans = ans + i
    print(ans)

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
S_list = list(S)
S_list[S.index("7")] = "8"
a = ""
for i in S_list:
  a += i
print(a)

Submission status: Accepted

Solution code:
a = input()

b = a[:3] + "8" + a[4:]

print(b)

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


def main():
    S = input().rstrip()

    ans = "2018" + S[4:]

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def actual(s):
    return s.replace('2017', '2018')

s = input()
print(actual(s))

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

y, m, d = s.split("/")
print("2018/" + m + "/" + d)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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