AtCoder Beginner Contest 085 - Already 2018

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-----
2017/01/07

-----Sample Output-----
2018/01/07

Source: atcoder | Difficulty: EASY


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


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


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


n = input()
print('2018/01/' + n[-2] + n[-1])


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


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


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


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


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


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


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


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


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


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


print(input().replace('7/', '8/'))


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


print(str(input()).replace('7', '8', 1))


print('2018' + input()[-6:])


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


def main():
	s = input()
	print(f'2018{s[4:]}')
main()


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


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


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


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


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


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


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


import sys
sys.setrecursionlimit(10 ** 6)
s = list(str(input()))
s[:4] = list('2018')
print(''.join(s))


s = input()
print(s.replace('017', '018'))


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


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


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


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


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


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


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


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


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


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


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


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


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


print(input().replace('017', '018'))


a = input().strip()
print(a[:3] + '8' + a[4:])


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


print(input().replace('17', '18'))


a = input()
print(a.replace('7', '8', 1))


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


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


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


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


moji = str(input())
print(moji.replace('2017', '2018'))


S = input()
print(S.replace(S[:4], '2018'))


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


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


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


(year, month, day) = map(str, input().split('/'))
print('2018/' + month + '/' + day)


print('2018/' + input()[5:])


S = input()
a = S.split('/')
b = '2018/' + a[1] + '/' + a[2]
print(b)


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


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


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


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


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


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


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


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


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


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


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


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


S = str(input())
s = '2'
for i in range(1, 10):
	if i == 3:
		s += '8'
	else:
		s += S[i]
print(s)


S = str(input())
print('2018' + S[-6:])


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


S = str(input())
print(S.replace(S[0:4], '2018'))


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


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


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


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


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


print(input().replace('17', '18', 1))


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)


date = list(input())
date[3] = '8'
print(''.join(map(str, date)))


print(f'{2018}{input()[4:]}')


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


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


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


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


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


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


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


s = input()
print(s[:3] + '8' + s[-6:])


print('2018/01/' + input().split('/')[2])


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


print('2018' + input().rstrip('\n')[4:])


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


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


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


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


str = input()
print('2018/' + str[5:])


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


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


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


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


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


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


n = input()
print(n[0:3] + '8' + n[4:10])


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


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


import sys
S = sys.stdin.readline().strip()
print('2018' + S[4:])


s = str(input())
print('2018/' + s[5:])


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


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


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


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


t = input()
print(str(2018) + t[4:11])


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


S = input()
day = S[-6:]
print('2018' + day)


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


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


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


m = input()
print('2018{}'.format(m[4:]))


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


print('2018/01/{}'.format(input()[8:]))


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


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


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


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


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