S = input()

year,month,day = map(int,S.split("/"))

if year<2019:
  print("Heisei")
elif year==2019:
  if month<=4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD") S = input() S input() input year,month,day = map(int,S.split("/")) year map(int,S.split("/")) map int S.split("/") S.split S split "/" month day if year<2019:
  print("Heisei")
elif year==2019:
  if month<=4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD") year<2019 year 2019 print("Heisei") print "Heisei" elif year==2019:
  if month<=4:
    print("Heisei")
  else:
    print("TBD") year==2019 year 2019 if month<=4:
    print("Heisei")
  else:
    print("TBD") month<=4 month 4 print("Heisei") print "Heisei" print("TBD") print "TBD" print("TBD") print "TBD" month,day = map(int,S.split("/")) map(int,S.split("/")) month year,month,day = map(int,S.split("/")) map(int,S.split("/")) year S = input() input() S day = map(int,S.split("/")) map(int,S.split("/")) day
S = input()

year,month,day = map(int,S.split("/"))

if year<2019:
  print("Heisei")
elif year==2019:
  if month<=4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")