s = input()

a = int(s[5])
b = int(s[6])

if a == 0 and b <= 4:
  print('Heisei')
else:
  print('TBD') s = input() s input() input a = int(s[5]) a int(s[5]) int s[5] s 5 b = int(s[6]) b int(s[6]) int s[6] s 6 if a == 0 and b <= 4:
  print('Heisei')
else:
  print('TBD') a == 0 and b <= 4 a == 0 a 0 b <= 4 b 4 print('Heisei') print 'Heisei' print('TBD') print 'TBD' a = int(s[5]) int(s[5]) a b = int(s[6]) int(s[6]) b s = input() input() s
s = input()

a = int(s[5])
b = int(s[6])

if a == 0 and b <= 4:
  print('Heisei')
else:
  print('TBD')