S = input()
m = int(S[5:7])
print('Heisei') if m <= 4 else print('TBD') S = input() S input() input m = int(S[5:7]) m int(S[5:7]) int S[5:7] S 5:7 5 7 print('Heisei') if m <= 4 else print('TBD') m <= 4 m 4 print('Heisei') print 'Heisei' print('TBD') print 'TBD' m = int(S[5:7]) int(S[5:7]) m S = input() input() S
S = input()
m = int(S[5:7])
print('Heisei') if m <= 4 else print('TBD')