object Main extends App {
  var input = scala.io.StdIn.readLine()
  val inputDay =  input.replace("/", "").toInt
  if(inputDay <= 20190430) {
    println("Heisei")
  } else {
    println("TBD")
  }
}
