def main():
  s = input()
  if int(s[0:4])<=2018:
    print( "Heisei" )
  elif int(s[0:4])==2019:
    if int(s[5:7])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
  else:
      print( "TBD" )
  
main() def main():
  s = input()
  if int(s[0:4])<=2018:
    print( "Heisei" )
  elif int(s[0:4])==2019:
    if int(s[5:7])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
  else:
      print( "TBD" )
   main s = input() s input() input if int(s[0:4])<=2018:
    print( "Heisei" )
  elif int(s[0:4])==2019:
    if int(s[5:7])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
  else:
      print( "TBD" )
   int(s[0:4])<=2018 int(s[0:4]) int s[0:4] s 0:4 0 4 2018 print( "Heisei" ) print "Heisei" elif int(s[0:4])==2019:
    if int(s[5:7])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
   int(s[0:4])==2019 int(s[0:4]) int s[0:4] s 0:4 0 4 2019 if int(s[5:7])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
   int(s[5:7])<=4 int(s[5:7]) int s[5:7] s 5:7 5 7 4 print( "Heisei" ) print "Heisei" print( "TBD" ) print "TBD" print( "TBD" ) print "TBD" main() main def main():
  s = input()
  if int(s[0:4])<=2018:
    print( "Heisei" )
  elif int(s[0:4])==2019:
    if int(s[5:7])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
  else:
      print( "TBD" )
   def main():
  s = input()
  if int(s[0:4])<=2018:
    print( "Heisei" )
  elif int(s[0:4])==2019:
    if int(s[5:7])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
  else:
      print( "TBD" )
   main
def main():
  s = input()
  if int(s[0:4])<=2018:
    print( "Heisei" )
  elif int(s[0:4])==2019:
    if int(s[5:7])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
  else:
      print( "TBD" )
  
main()