object Main extends App {
  val ss = io.StdIn.readLine.split('/')

  val year = ss(0).toInt
  val month = ss(1).toInt
  val day = ss(2).toInt

  val out = (year,month,day) match {
    case (2019,m,_) if m <= 4 => "Heisei"
    case (y,_,_) if y >= 2019 => "TBD"
    case _ => "Heisei"
  }

  println(out)
}