object Main{
  def main(args:Array[String]) : Unit ={
    val sc = new java.util.Scanner(System.in)
    val str = sc.next()
    val r = """\d{4}/(\d{2})/\d{2}""".r
    val date = r.findFirstMatchIn(str)
    
    val month:Int = date.get.group(1).toInt
    
    println(if(month >= 5) "TBD" else "Heisei")
    
    
  }
}