"use strict";
function lowerThanDateOnly(date1, date2) {
    let d1 = date1.split('/');
    let year1 = d1[0] - 0;
    let month1 = d1[1] - 0;
    let day1 = d1[2] - 0;

    let d2 = date2.split('/');
    let year2 = d2[0] - 0;
    let month2= d2[1] - 0;
    let day2 = d2[2] - 0;

    if (year1 == year2) {
        if (month1 == month2) {
            return day1 < day2;
        }
        else {
            return month1 < month2;
        }
    } else {
        return year1 < year2;
    }
}
function Main(input) {
    let lines = input.split("\n")[0];
    console.log(lowerThanDateOnly(lines, '2019/05/01') ? "Heiset" : "TBD");
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
