"use strict";

function main(arg) {
    const S = arg.split("\n")[0].split("/");
    let answer;
    
    if(parseInt(S[0]) < 2019) {
        answer = "TBD";
    } else if (parseInt(S[0]) == 2019 && parseInt(S[1]) > 4) {
        answer = "TBD";
    } else {
        answer = "Heisei";
    }
    
    console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));