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

Solution in Ruby (2.3.3) (judge verdict: Runtime Error)

n, y = gets.strip.split.map(&:to_i)
maisuu = y/1000
sabun = (maisuu - n)

a = sabun/13
b = (sabun%13)/9
c = (sabun%13)/4
d = ((sabun%13)%9)/4

if sabun >= 0
  if sabun%13 == 0
    maisuu10000 = a
    maisuu5000 = a
    maisuu1000 = maisuu - a*15
  elsif (sabun%13)%9 == 0
    maisuu10000 = a + b
    maisuu5000 = a
    maisuu1000 = maisuu - a*15 - b*10
  elsif (sabun%13)%4 == 0
    maisuu10000 = a
    maisuu5000 = a + c
    maisuu1000 = maisuu - a*15 - c*5
  elsif ((sabun%13)%9)%4 == 0
    maisuu10000 = a + b
    maisuu5000 = a + d
    maisuu1000 = maisuu - 10*maisuu10000 - 5*maisuu5000
  elsif (sabun%9)%4 == 0
    maisuu10000 = sabun/9
    maisuu5000 = (sabun%9)/4
    maisuu1000 = maisuu - 10*maisuu10000 -5*maisuu5000
  elsif sabun%9 == 0
    maisuu10000 = sabun/9
    maisuu5000 = 0
    maisuu1000 = maisuu - 10*(sabun/9)
  elsif sabun%4 == 0
    maisuu10000 = 0
    maisuu5000 = sabun/4
    maisuu1000 = maisuu - 5*(sabun/4)
  else
    maisuu1000 = -1
  end
else
  maisuu1000 = -1
end

if maisuu1000 >= 0 and maisuu10000 + maisuu5000 + maisuu1000 == n
  puts sprintf('%d %d %d', maisuu10000, maisuu5000, maisuu1000)
else
  puts sprintf('%d %d %d', -1, -1, -1)
end