fun main(args: Array<String>) {
    var a = readLine()!!.split("/").map(String::toInt)
    if(a[1] > 4) println("TBD")
    else{
        if(a[2]<=30) println("Heisei")
        else println("TBD")
    }
    
}
