S = input()
if int(S[5]) == 0 and int(S[6]) < 4:
    print('Heisei')
elif int(S[6]) == 4 and int(S[-2:-1]) <= 30:
    print('Heisei')
else:
    print('TBD') S = input() S input() input if int(S[5]) == 0 and int(S[6]) < 4:
    print('Heisei')
elif int(S[6]) == 4 and int(S[-2:-1]) <= 30:
    print('Heisei')
else:
    print('TBD') int(S[5]) == 0 and int(S[6]) < 4 int(S[5]) == 0 int(S[5]) int S[5] S 5 0 int(S[6]) < 4 int(S[6]) int S[6] S 6 4 print('Heisei') print 'Heisei' elif int(S[6]) == 4 and int(S[-2:-1]) <= 30:
    print('Heisei') int(S[6]) == 4 and int(S[-2:-1]) <= 30 int(S[6]) == 4 int(S[6]) int S[6] S 6 4 int(S[-2:-1]) <= 30 int(S[-2:-1]) int S[-2:-1] S -2:-1 -2 -1 30 print('Heisei') print 'Heisei' print('TBD') print 'TBD' S = input() input() S
S = input()
if int(S[5]) == 0 and int(S[6]) < 4:
    print('Heisei')
elif int(S[6]) == 4 and int(S[-2:-1]) <= 30:
    print('Heisei')
else:
    print('TBD')