import java.util.Scanner
import scala.util.control.Breaks

object Main {

  def heisei_or_TBD(date: String): String = {
    val y_m_d = date.split("/")
    if (y_m_d(0).toInt <= 2019 && y_m_d(1).toInt <= 4 && y_m_d(2).toInt <= 30) {
      "Heisei"
    } else {
      "TBD"
    }
  }

  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
        print(heisei_or_TBD(sc.next))
  }
}