input = gets.chomp
testRegexp = /(\d{4})(\/)(\d{2})(\/)(\d{2})/
testRegexp =~ input

year =  $1.to_i
month = $3.to_i
day = $5.to_i

if year < 2019
	puts "Heisei"
else
	if month < 5
		puts "Heisei"
	else
		puts "TBD"
	end
end