s = list(map(int, input().split('/')))
if s[1] <= 4:
    print('Heisei')
else:
    print('TBD') s = list(map(int, input().split('/'))) s list(map(int, input().split('/'))) list map(int, input().split('/')) map int input().split('/') ().split () input split '/' if s[1] <= 4:
    print('Heisei')
else:
    print('TBD') s[1] <= 4 s[1] s 1 4 print('Heisei') print 'Heisei' print('TBD') print 'TBD' s = list(map(int, input().split('/'))) list(map(int, input().split('/'))) s
s = list(map(int, input().split('/')))
if s[1] <= 4:
    print('Heisei')
else:
    print('TBD')