import re
s=input()
S=re.sub(r'([0-9]{4})/([0-9]{2})/([0-9]{2})',r'\1\2\3',s)
if int(S)<=20190430:
    print('Heisei')
else:
    print('TBD') import re re s=input() s input() input S=re.sub(r'([0-9]{4})/([0-9]{2})/([0-9]{2})',r'\1\2\3',s) S re.sub(r'([0-9]{4})/([0-9]{2})/([0-9]{2})',r'\1\2\3',s) re.sub re sub r'([0-9]{4})/([0-9]{2})/([0-9]{2})' r'\1\2\3' s if int(S)<=20190430:
    print('Heisei')
else:
    print('TBD') int(S)<=20190430 int(S) int S 20190430 print('Heisei') print 'Heisei' print('TBD') print 'TBD' s=input() input() s S=re.sub(r'([0-9]{4})/([0-9]{2})/([0-9]{2})',r'\1\2\3',s) re.sub(r'([0-9]{4})/([0-9]{2})/([0-9]{2})',r'\1\2\3',s) S
import re
s=input()
S=re.sub(r'([0-9]{4})/([0-9]{2})/([0-9]{2})',r'\1\2\3',s)
if int(S)<=20190430:
    print('Heisei')
else:
    print('TBD')