object Main extends App {
  import scala.util.matching.Regex

  val keyValPattern: Regex = "([0-9]+)/([0-9]+)/([0-9]+)".r

  val input: String = readLine


  val patternMatch = keyValPattern.findFirstMatchIn(input)
  patternMatch match {
    case Some(m) => println(s"2018/${m.group(2)}/${m.group(3)}")
    case _ => println("error")
  }
}