object Main extends App {
    var get = readLine
    var a = get.split("/")(0).toInt
    var b = get.split("/")(1).toInt
    var c = get.split("/")(2).toInt
  
	if(a<2020 && b < 5 && c < 31) {
      println("Heisei")
    } else {
      println("TBD")
    }
}