a=input()
if a[5]=="1":
  print("TBD")
elif int(a[6])>4:
  print("TBD")
else:
  print("Heisei") a=input() a input() input if a[5]=="1":
  print("TBD")
elif int(a[6])>4:
  print("TBD")
else:
  print("Heisei") a[5]=="1" a[5] a 5 "1" print("TBD") print "TBD" elif int(a[6])>4:
  print("TBD") int(a[6])>4 int(a[6]) int a[6] a 6 4 print("TBD") print "TBD" print("Heisei") print "Heisei" a=input() input() a
a=input()
if a[5]=="1":
  print("TBD")
elif int(a[6])>4:
  print("TBD")
else:
  print("Heisei")