import java.time.LocalDate

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 = LocalDate.of(ss(0), ss(1), ss(2)).isAfter(LocalDate.of(2019, 4, 30))
  println(if (ans) "TBD" else "Heisei")
}