fun main(args: Array<String>) {
    val S = readInputLine().split("/").map{it.toInt()}
    
    if (S[0] < 2019 || (S[0] == 2019 && S[1] < 4) || (S[0] == 2019 && S[1] == 4 && S[2] <= 30)) {
        println("Heisei")
    } else {
        println("TBD")
    }
}

fun readInputLine(): String {
    return readLine()!!
}
