fun main(Args: Array<String>) {
    val s = readLine() ?: return

    val year = s.substring(0..3).toInt()
    if (year > 2019) {
        println("TBD")
        return
    }
    if (year < 2019) {
        println("Heisei")
        return
    }

    val month = s.substring(5..6).toInt()
    if (month > 4) {
        println("TBD")
        return
    }
    println("Heisei")
}