a = input()
if int(a[5]) == 1:
  print('TBD')
else:
  if int(a[6]) > 4:
    print('TBD')
  else:
    print('Heisei') a = input() a input() input if int(a[5]) == 1:
  print('TBD')
else:
  if int(a[6]) > 4:
    print('TBD')
  else:
    print('Heisei') int(a[5]) == 1 int(a[5]) int a[5] a 5 1 print('TBD') print 'TBD' if int(a[6]) > 4:
    print('TBD')
  else:
    print('Heisei') int(a[6]) > 4 int(a[6]) int a[6] a 6 4 print('TBD') print 'TBD' print('Heisei') print 'Heisei' a = input() input() a
a = input()
if int(a[5]) == 1:
  print('TBD')
else:
  if int(a[6]) > 4:
    print('TBD')
  else:
    print('Heisei')