function main(input) {
    const args = input.split('/');
    var Y = parseInt(args[0], 10);
    var M = parseInt(args[1], 10);
    var D = parseInt(args[2], 10);

    if(Y < 2019) {
        console.log('Heisei')
    } else if(Y === 2019 && M < 4) {
        console.log('Heisei')
    } else if (Y === 2019 && M === 4 && D <= 30) {
        console.log('Heisei')
    } else {
        console.log('TBD')
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
