# -*- coding: <encoding name> -*-

s = input()
print('Heisei' if s <= '2019/04/30' else 'TBD') s = input() s input() input print('Heisei' if s <= '2019/04/30' else 'TBD') print 'Heisei' if s <= '2019/04/30' else 'TBD' s <= '2019/04/30' s '2019/04/30' 'Heisei' 'TBD' s = input() input() s
# -*- coding: <encoding name> -*-

s = input()
print('Heisei' if s <= '2019/04/30' else 'TBD')