100850: [AtCoder]ABC085 A - Already 2018

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

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

Input

题意翻译

## 题目描述 $2018$ 年 $1$ 月的某一天,高木在写文件。在文件中,当天的日期会以 `yyyy/mm/dd` (`年/月/日` 的形式)的形式写入。例如,$2018$ 年 $1$月 $23$ 日为 $2018/01/23$ 。 写完文件后,高木发现在日期栏的年份写成了`2017`。请将表示年份的前四个字符更改为`2018`。 ## 输入格式 输入一个字符串 $S$ 。 ## 输出格式 输出一个年份修改为`2018`的字符串 $S'$ 。 ## 补充说明 - 字符串 $S$ 的长度为 $10$ ; - 字符串的前 $8$ 个字符是`2017/01/`; - $S$ 中的最后两个字符是数字,表示 $1$ 到 $31$ (含)之间的整数。

加入题单

上一题 下一题 算法标签: