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