s = input()
s = s.split("/")

if int(s[0]) >= 2019 and int(s[1]) >= 5:
  print("TBD")
else:
  print("Heisei") s = input() s input() input s = s.split("/") s s.split("/") s.split s split "/" if int(s[0]) >= 2019 and int(s[1]) >= 5:
  print("TBD")
else:
  print("Heisei") int(s[0]) >= 2019 and int(s[1]) >= 5 int(s[0]) >= 2019 int(s[0]) int s[0] s 0 2019 int(s[1]) >= 5 int(s[1]) int s[1] s 1 5 print("TBD") print "TBD" print("Heisei") print "Heisei" s = s.split("/") s.split("/") s s = input() input() s
s = input()
s = s.split("/")

if int(s[0]) >= 2019 and int(s[1]) >= 5:
  print("TBD")
else:
  print("Heisei")