S = list(map(int, input().split("/")))

if S[0] < 2019:
  print("Heisei")
elif S[1] <= 4:
  print("Heisei")
else:
  print("TBD") S = list(map(int, input().split("/"))) S list(map(int, input().split("/"))) list map(int, input().split("/")) map int input().split("/") ().split () input split "/" if S[0] < 2019:
  print("Heisei")
elif S[1] <= 4:
  print("Heisei")
else:
  print("TBD") S[0] < 2019 S[0] S 0 2019 print("Heisei") print "Heisei" elif S[1] <= 4:
  print("Heisei") S[1] <= 4 S[1] S 1 4 print("Heisei") print "Heisei" print("TBD") print "TBD" S = list(map(int, input().split("/"))) list(map(int, input().split("/"))) S
S = list(map(int, input().split("/")))

if S[0] < 2019:
  print("Heisei")
elif S[1] <= 4:
  print("Heisei")
else:
  print("TBD")