s = [int(x) for x in input().split("/")]
 
if s[1] < 4:
  print("Heisei")
elif s[1] == 4 and s[2] <= 30:
  print("Heisei")
else:
  print("TBD") int(x) for x in input().split("/") for x in input().split("/") x input().split("/") ().split () input split "/" for x in input().split("/") int(x) int x s = [int(x) for x in input().split("/")] s [int(x) for x in input().split("/")] if s[1] < 4:
  print("Heisei")
elif s[1] == 4 and s[2] <= 30:
  print("Heisei")
else:
  print("TBD") s[1] < 4 s[1] s 1 4 print("Heisei") print "Heisei" elif s[1] == 4 and s[2] <= 30:
  print("Heisei") s[1] == 4 and s[2] <= 30 s[1] == 4 s[1] s 1 4 s[2] <= 30 s[2] s 2 30 print("Heisei") print "Heisei" print("TBD") print "TBD" s = [int(x) for x in input().split("/")] [int(x) for x in input().split("/")] s
s = [int(x) for x in input().split("/")]
 
if s[1] < 4:
  print("Heisei")
elif s[1] == 4 and s[2] <= 30:
  print("Heisei")
else:
  print("TBD")