import std.stdio, std.string, std.range, std.conv, std.array, std.algorithm, std.math, std.typecons, std.datetime;

void main() {
    const S = readln.chomp;
    auto d = Date.fromISOString(S.replace("/", ""));

    if (d <= Date(2019, 4, 30)) {
        writeln("Heisei");
    } else {
        writeln("TBD");
    }
}

