s = str(input())
a = s[5:7] + s[8:]
if int(a) <= 430:
	print('Heisei')
else:
	print('TBD') s = str(input()) s str(input()) str input() input a = s[5:7] + s[8:] a s[5:7] + s[8:] s[5:7] s 5:7 5 7 s[8:] s 8: 8 if int(a) <= 430:
	print('Heisei')
else:
	print('TBD') int(a) <= 430 int(a) int a 430 print('Heisei') print 'Heisei' print('TBD') print 'TBD' a = s[5:7] + s[8:] s[5:7] + s[8:] a s = str(input()) str(input()) s
s = str(input())
a = s[5:7] + s[8:]
if int(a) <= 430:
	print('Heisei')
else:
	print('TBD')