s = input()

year = int(s[:4])
mo = int(s[5:7])

if year < 2019:
  ans = "Heisei"
elif year == 2019 and mo<= 4:
  ans ='Heisei'
else:
  ans = 'TBD'
print(ans) s = input() s input() input year = int(s[:4]) year int(s[:4]) int s[:4] s :4 4 mo = int(s[5:7]) mo int(s[5:7]) int s[5:7] s 5:7 5 7 if year < 2019:
  ans = "Heisei"
elif year == 2019 and mo<= 4:
  ans ='Heisei'
else:
  ans = 'TBD' year < 2019 year 2019 ans = "Heisei" ans "Heisei" elif year == 2019 and mo<= 4:
  ans ='Heisei' year == 2019 and mo<= 4 year == 2019 year 2019 mo<= 4 mo 4 ans ='Heisei' ans 'Heisei' ans = 'TBD' ans 'TBD' print(ans) print ans mo = int(s[5:7]) int(s[5:7]) mo ans = "Heisei" "Heisei" ans s = input() input() s year = int(s[:4]) int(s[:4]) year ans ='Heisei' 'Heisei' ans ans = 'TBD' 'TBD' ans
s = input()

year = int(s[:4])
mo = int(s[5:7])

if year < 2019:
  ans = "Heisei"
elif year == 2019 and mo<= 4:
  ans ='Heisei'
else:
  ans = 'TBD'
print(ans)