object Main {
  def main(args: Array[String]): Unit = {
    val s = io.StdIn.readLine().split("/")

    if (s(0).toInt < 2019) println("Heisei")
    else if (s(0).toInt > 2019) println("TBD")
    else if (s(1).toInt <= 4) println("Heisei")
    else println("TBD")
  }
}
