s = list(map(int, input().split('/')))

if s <= [2019, 4, 30]:
    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 <= [2019, 4, 30]:
    print('Heisei')
else:
    print('TBD')

  s <= [2019, 4, 30] s [2019, 4, 30] 2019 4 30 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 <= [2019, 4, 30]:
    print('Heisei')
else:
    print('TBD')

 