from datetime import datetime as dt
tstr = input()
tdatetime  = dt.strptime(tstr, '%Y/%m/%d')
tstr = '2019/04/30'
heiseitime = dt.strptime(tstr, '%Y/%m/%d')
if heiseitime >= tdatetime:
  print("Heisei")
else:
  print("TBD") from datetime import datetime as dt tstr = input() tstr input() input tdatetime  = dt.strptime(tstr, '%Y/%m/%d') tdatetime dt.strptime(tstr, '%Y/%m/%d') dt.strptime dt strptime tstr '%Y/%m/%d' tstr = '2019/04/30' tstr '2019/04/30' heiseitime = dt.strptime(tstr, '%Y/%m/%d') heiseitime dt.strptime(tstr, '%Y/%m/%d') dt.strptime dt strptime tstr '%Y/%m/%d' if heiseitime >= tdatetime:
  print("Heisei")
else:
  print("TBD") heiseitime >= tdatetime heiseitime tdatetime print("Heisei") print "Heisei" print("TBD") print "TBD" tstr = '2019/04/30' '2019/04/30' tstr heiseitime = dt.strptime(tstr, '%Y/%m/%d') dt.strptime(tstr, '%Y/%m/%d') heiseitime tdatetime  = dt.strptime(tstr, '%Y/%m/%d') dt.strptime(tstr, '%Y/%m/%d') tdatetime tstr = input() input() tstr
from datetime import datetime as dt
tstr = input()
tdatetime  = dt.strptime(tstr, '%Y/%m/%d')
tstr = '2019/04/30'
heiseitime = dt.strptime(tstr, '%Y/%m/%d')
if heiseitime >= tdatetime:
  print("Heisei")
else:
  print("TBD")