# coding: utf-8

# https://atcoder.jp/contests/abc119
# 8:40-


def main():
    S = input()
    m = int(S[5:7])
    
    if m <= 4:
        return "Heisei"
    else:
        return "TBD"


print(main()) def main():
    S = input()
    m = int(S[5:7])
    
    if m <= 4:
        return "Heisei"
    else:
        return "TBD" main S = input() S input() input m = int(S[5:7]) m int(S[5:7]) int S[5:7] S 5:7 5 7 if m <= 4:
        return "Heisei"
    else:
        return "TBD" m <= 4 m 4 return "Heisei" "Heisei" return "TBD" "TBD" print(main()) print main() main def main():
    S = input()
    m = int(S[5:7])
    
    if m <= 4:
        return "Heisei"
    else:
        return "TBD" def main():
    S = input()
    m = int(S[5:7])
    
    if m <= 4:
        return "Heisei"
    else:
        return "TBD" main
# coding: utf-8

# https://atcoder.jp/contests/abc119
# 8:40-


def main():
    S = input()
    m = int(S[5:7])
    
    if m <= 4:
        return "Heisei"
    else:
        return "TBD"


print(main())
