s = input()
date = s.split('/')
print('Heisei') if int(date[1]) <= 4 else print('TBD') s = input() s input() input date = s.split('/') date s.split('/') s.split s split '/' print('Heisei') if int(date[1]) <= 4 else print('TBD') int(date[1]) <= 4 int(date[1]) int date[1] date 1 4 print('Heisei') print 'Heisei' print('TBD') print 'TBD' date = s.split('/') s.split('/') date s = input() input() s
s = input()
date = s.split('/')
print('Heisei') if int(date[1]) <= 4 else print('TBD')