object Main extends App {
  val sc = new java.util.Scanner(System.in)
//  val l = List.fill(5)(sc.nextInt)
  val s = sc.next
  val ss = s.split("/").map(_.toInt)

  val ans = if (ss(1) <= 4) "Heisei" else "TBD"
  println(ans)
}