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