

Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 100 点
問題文
2018 年 1 月某日、高木さんは書類を書いています。書類には、その日の日付を yyyy/mm/dd
という形式で書き込む欄があります。例えば、2018 年 1 月 23 日は 2018/01/23
となります。
書類を書き終えたあと、高木さんは日付欄の先頭に誤って 2017
と書いてしまっていたことに気がつきました。高木さんが日付欄に書いた文字列 S を入力すると、S の先頭の 4 文字を 2018
に修正して出力するプログラムを書いてください。
制約
- S は長さ 10 の文字列である。
- S の先頭の 8 文字は
2017/01/
である。 - S の末尾の 2 文字は数字であり、1 以上 31 以下の整数を表す。
入力
入力は以下の形式で標準入力から与えられる。
S
出力
S の先頭の 4 文字を 2018
に置き換えて出力せよ。
入力例 1
2017/01/07
出力例 1
2018/01/07
入力例 2
2017/01/31
出力例 2
2018/01/31
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