a = input()
a = a.replace("/","")
if int(a) <= 20190430:
  print("Heisei")
else:
  print("TBD") a = input() a input() input a = a.replace("/","") a a.replace("/","") a.replace a replace "/" "" if int(a) <= 20190430:
  print("Heisei")
else:
  print("TBD") int(a) <= 20190430 int(a) int a 20190430 print("Heisei") print "Heisei" print("TBD") print "TBD" a = input() input() a a = a.replace("/","") a.replace("/","") a
a = input()
a = a.replace("/","")
if int(a) <= 20190430:
  print("Heisei")
else:
  print("TBD")