S = list(input().split('/'))
S = int(''.join(S))

if S > 20190430:
    print('TBD')
else:
    print('Heisei') S = list(input().split('/')) S list(input().split('/')) list input().split('/') ().split () input split '/' S = int(''.join(S)) S int(''.join(S)) int ''.join(S) ''.join '' join S if S > 20190430:
    print('TBD')
else:
    print('Heisei') S > 20190430 S 20190430 print('TBD') print 'TBD' print('Heisei') print 'Heisei' S = list(input().split('/')) list(input().split('/')) S S = int(''.join(S)) int(''.join(S)) S
S = list(input().split('/'))
S = int(''.join(S))

if S > 20190430:
    print('TBD')
else:
    print('Heisei')
