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