import java.util.Scanner

object Main {
  val sc = new Scanner(System.in)
  def main(args: Array[String]): Unit = {
    val s = sc.next.split("/")(1).toInt
    println(if(s < 5) "Heisei" else "TBD")
  }
}
