import java.text.SimpleDateFormat

fun main(args: Array<String>) {
    val df = SimpleDateFormat("yyyy/MM/dd")
    val input = readLine()!!.toString()

    val date = df.parse(input)
    val date2 = df.parse("2019/04/30")

    if (date <= date2) {
        println("Heisei")
    } else {
        println("TBD")
    }
}