S = input()
Sint = int(S[:4])*10000 + int(S[5:7])*100 + int(S[8:])
if Sint > 20190430:
    print('TBD')
else:
    print('Heisei') S = input() S input() input Sint = int(S[:4])*10000 + int(S[5:7])*100 + int(S[8:]) Sint int(S[:4])*10000 + int(S[5:7])*100 + int(S[8:]) int(S[:4])*10000 + int(S[5:7])*100 int(S[:4])*10000 int(S[:4]) int S[:4] S :4 4 10000 int(S[5:7])*100 int(S[5:7]) int S[5:7] S 5:7 5 7 100 int(S[8:]) int S[8:] S 8: 8 if Sint > 20190430:
    print('TBD')
else:
    print('Heisei') Sint > 20190430 Sint 20190430 print('TBD') print 'TBD' print('Heisei') print 'Heisei' S = input() input() S Sint = int(S[:4])*10000 + int(S[5:7])*100 + int(S[8:]) int(S[:4])*10000 + int(S[5:7])*100 + int(S[8:]) Sint
S = input()
Sint = int(S[:4])*10000 + int(S[5:7])*100 + int(S[8:])
if Sint > 20190430:
    print('TBD')
else:
    print('Heisei')
