import re
s=input()
a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s)

if int(a.group(2))>4:
    print("TBD")
else:
    print("Heisei") 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(a.group(2))>4:
    print("TBD")
else:
    print("Heisei") int(a.group(2))>4 int(a.group(2)) int a.group(2) a.group a group 2 4 print("TBD") print "TBD" print("Heisei") print "Heisei" 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 s=input() input() s
import re
s=input()
a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s)

if int(a.group(2))>4:
    print("TBD")
else:
    print("Heisei")