object Main extends App {
  val in = scala.io.Source.stdin.getLines.toSeq
  val ls = in.map(_.split(' ').toIndexedSeq).head
  val S = ls(0)
  
  val ret = if(S > "2019/04/30") "TBD" else "Heisei"
  println(ret)
}
