import java.io.BufferedReader
import java.io.InputStreamReader
import java.util.*

fun main(args: Array<String>) {
    val br = BufferedReader(InputStreamReader(System.`in`))
    val s = br.readLine()
    println(s.replace("2017", "2018"))
}

fun err(print: Any) {
    System.err.println(print)
}