object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val S = sc.next

    if(S(5) == '0'){
      if(S(6).toInt > '4') println("TBD")
      else println("Heisei")
    } else {
      println("TBD")
    }
  }
}
