s = input()
m = int(s[5:7])
if m <=4:
  print("Heisei")
else:
  print("TBD") s = input() s input() input m = int(s[5:7]) m int(s[5:7]) int s[5:7] s 5:7 5 7 if m <=4:
  print("Heisei")
else:
  print("TBD") m <=4 m 4 print("Heisei") print "Heisei" print("TBD") print "TBD" s = input() input() s m = int(s[5:7]) int(s[5:7]) m
s = input()
m = int(s[5:7])
if m <=4:
  print("Heisei")
else:
  print("TBD")