fun main(args: Array<String>) {
    val s = readLine()
    
    val month = s!!.substring(5, 7).toInt()
    val day = s!!.substring(8, 10).toInt()
    val res = if((month > 4) || (month == 4 && day > 30)){
        "TBD"
    } else {
        "Heisei"
    }
    println(res)
}
