import java.util.Date

object Main {

  val amari = 1000000007

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val S = sc.next()
    val d = Date.parse(S)
    println(
      if (d.compareTo(Date.parse("2019/04/30")) <= 0)
        "Heisei"
      else
        "TBD"
    )
  }
}
