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