import java.util.Scanner

object Main {
  def main(args: Array[String]) {
    val result = solve(new Scanner(System.in))
    if (result.length > 0) println(result)
  }

  def solve(in: String): String = solve(new Scanner(in))

  def solve(sc: Scanner): String = {
    val S = sc.next
    val ymd = S.split("/").map(_.toInt)

    if (ymd(0) <= 2019 && ymd(1) <=4 && ymd(2) <= 30) "Heisei" else "TBD"
  }
}
