object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val S = sc.next()
  println {
    S.split("/").map(_.toInt) match {
      case Array(yyyy, mm, _) if 2019 <= yyyy && 5 <= mm => "TBD"
      case _ => "Heisei"
    }
  }
}
