s=input()
if int(s[5:5+2]) >=5:
  print("TBD")
else:
  print("Heisei") s=input() s input() input if int(s[5:5+2]) >=5:
  print("TBD")
else:
  print("Heisei") int(s[5:5+2]) >=5 int(s[5:5+2]) int s[5:5+2] s 5:5+2 5 5+2 5 2 5 print("TBD") print "TBD" print("Heisei") print "Heisei" s=input() input() s
s=input()
if int(s[5:5+2]) >=5:
  print("TBD")
else:
  print("Heisei")