import std.stdio;
import std.string;
import std.conv;
import std.algorithm;

void main() {
	auto S = split(readln())[0];
	auto year = to!int(S[0 .. 4]), month = to!int(S[5 .. 7]), day = to!int(S[8 .. 10]);
	string result = (year < 2019 || year == 2019 && month < 4 || year == 2019 && month == 4 && day <= 30) ? "Heisei" : "TBD";
	writeln(result);
}