
object Main extends App {
  val ss = io.StdIn.readLine.split('/')

  val year = ss(0).toInt
  val month = ss(1).toInt
  val day = ss(2).toInt

  val out =
    if (year >= 2019 && month >= 4 && day >= 30)
      "Heisei"
    else
      "TBD"

  println(out)
}

