s = input()
s = int(s.replace('/', ''))
if 20190430 >= s:
    print('Heisei')
else:
    print('TBD') s = input() s input() input s = int(s.replace('/', '')) s int(s.replace('/', '')) int s.replace('/', '') s.replace s replace '/' '' if 20190430 >= s:
    print('Heisei')
else:
    print('TBD') 20190430 >= s 20190430 s print('Heisei') print 'Heisei' print('TBD') print 'TBD' s = input() input() s s = int(s.replace('/', '')) int(s.replace('/', '')) s
s = input()
s = int(s.replace('/', ''))
if 20190430 >= s:
    print('Heisei')
else:
    print('TBD')
