import re
s=input()
a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s)
if int(str(a.group(2)))<=4:
    print('Heisei')
else:
    print('TBD') import re re s=input() s input() input a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s) a re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s) re.search re search '([0-9]{4})/([0-9]{2})/([0-9]{2})' s if int(str(a.group(2)))<=4:
    print('Heisei')
else:
    print('TBD') int(str(a.group(2)))<=4 int(str(a.group(2))) int str(a.group(2)) str a.group(2) a.group a group 2 4 print('Heisei') print 'Heisei' print('TBD') print 'TBD' s=input() input() s a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s) re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s) a
import re
s=input()
a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s)
if int(str(a.group(2)))<=4:
    print('Heisei')
else:
    print('TBD')