raw_data = gets
raw_data = raw_data.split("/").map{|n|n.to_i}
year = raw_data[0]
month = raw_data[1]
day = raw_data[2]
answer = "Heisei"
answer = "TBD" if year > 2019
answer = "TBD" if (year == 2019 && month > 4)
answer = "TBD" if (year == 2019 && month == 4 && day > 30)
puts answer