S = input()

yyyy = int(S[:4])
mmdd = int(S[5:7] + S[8:])

ans = "TBD"

if  yyyy < 2019:
    ans = "Heisei"
elif yyyy == 2019:
    if mmdd <= 430:
        ans = "Heisei"
        
print(ans) S = input() S input() input yyyy = int(S[:4]) yyyy int(S[:4]) int S[:4] S :4 4 mmdd = int(S[5:7] + S[8:]) mmdd int(S[5:7] + S[8:]) int S[5:7] + S[8:] S[5:7] S 5:7 5 7 S[8:] S 8: 8 ans = "TBD" ans "TBD" if  yyyy < 2019:
    ans = "Heisei"
elif yyyy == 2019:
    if mmdd <= 430:
        ans = "Heisei"
         yyyy < 2019 yyyy 2019 ans = "Heisei" ans "Heisei" elif yyyy == 2019:
    if mmdd <= 430:
        ans = "Heisei"
         yyyy == 2019 yyyy 2019 if mmdd <= 430:
        ans = "Heisei"
         mmdd <= 430 mmdd 430 ans = "Heisei" ans "Heisei" print(ans) print ans mmdd = int(S[5:7] + S[8:]) int(S[5:7] + S[8:]) mmdd ans = "TBD" "TBD" ans S = input() input() S yyyy = int(S[:4]) int(S[:4]) yyyy ans = "Heisei" "Heisei" ans ans = "Heisei" "Heisei" ans
S = input()

yyyy = int(S[:4])
mmdd = int(S[5:7] + S[8:])

ans = "TBD"

if  yyyy < 2019:
    ans = "Heisei"
elif yyyy == 2019:
    if mmdd <= 430:
        ans = "Heisei"
        
print(ans)