unittest
{
	assert( [ "2019/04/30" ].parse.expand.solve == "Heisei" );
	assert( [ "2019/11/01" ].parse.expand.solve == "TBD" );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto s = input.front;
	return tuple( s );
}

auto solve( string s )
{
	return ( s <= "2019/04/30" ) ? "Heisei" : "TBD";
}
