y,m,d = gets.split("/").map &:to_i

if y == 2019
    if m < 5
        puts "Heisei"
    else
        puts "TBD"
    end
elsif
    if y > 2019
        puts "TBD"
    else
        puts "Heisei"
    end
end