yyyy, mm, dd = input().split('/')
year = int(yyyy)
month = int(mm)
day = int(dd)
if year <= 2018:
  print('Heisei')
elif year == 2019:
  if month <= 3:
    print('Heisei')
  elif month == 4:
    print('Heisei')
  else:
    print('TBD')
else:
  print('TBD') yyyy, mm, dd = input().split('/') yyyy input().split('/') ().split () input split '/' mm dd year = int(yyyy) year int(yyyy) int yyyy month = int(mm) month int(mm) int mm day = int(dd) day int(dd) int dd if year <= 2018:
  print('Heisei')
elif year == 2019:
  if month <= 3:
    print('Heisei')
  elif month == 4:
    print('Heisei')
  else:
    print('TBD')
else:
  print('TBD') year <= 2018 year 2018 print('Heisei') print 'Heisei' elif year == 2019:
  if month <= 3:
    print('Heisei')
  elif month == 4:
    print('Heisei')
  else:
    print('TBD') year == 2019 year 2019 if month <= 3:
    print('Heisei')
  elif month == 4:
    print('Heisei')
  else:
    print('TBD') month <= 3 month 3 print('Heisei') print 'Heisei' elif month == 4:
    print('Heisei')
   month == 4 month 4 print('Heisei') print 'Heisei' print('TBD') print 'TBD' print('TBD') print 'TBD' dd = input().split('/') input().split('/') dd year = int(yyyy) int(yyyy) year month = int(mm) int(mm) month yyyy, mm, dd = input().split('/') input().split('/') yyyy mm, dd = input().split('/') input().split('/') mm day = int(dd) int(dd) day
yyyy, mm, dd = input().split('/')
year = int(yyyy)
month = int(mm)
day = int(dd)
if year <= 2018:
  print('Heisei')
elif year == 2019:
  if month <= 3:
    print('Heisei')
  elif month == 4:
    print('Heisei')
  else:
    print('TBD')
else:
  print('TBD')