fun main(args: Array<String>) {
    val (y, m, d) = readLine()!!.split("/").map { it.toInt() }

    val dates = 365 * y + 30 * m + d
    val target = 365 * 2019 + 30 * 4  + 30

    if (dates > target) print("TBD") else print("Heisei")
}