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

if S[0] >= 2019:
  if S[1] >= 5:
    print('TBD')
  else:
    print('Heisei')
else:
  print('Heisei') 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[0] >= 2019:
  if S[1] >= 5:
    print('TBD')
  else:
    print('Heisei')
else:
  print('Heisei') S[0] >= 2019 S[0] S 0 2019 if S[1] >= 5:
    print('TBD')
  else:
    print('Heisei') S[1] >= 5 S[1] S 1 5 print('TBD') print 'TBD' print('Heisei') print 'Heisei' print('Heisei') print 'Heisei' S = list(map(int, input().split('/'))) list(map(int, input().split('/'))) S
S = list(map(int, input().split('/')))

if S[0] >= 2019:
  if S[1] >= 5:
    print('TBD')
  else:
    print('Heisei')
else:
  print('Heisei')
