import datetime

S = eval(input())

date_a = datetime.datetime(2019,4,30)

date_b = datetime.datetime.strptime(S,'%Y/%m/%d')

if date_a >= date_b:print('Heisei')

else:print('TBD')
s = eval(input())



if (int(s[:4]) >= 2019) and (int(s[5:7]) >= 5):

	print('TBD')

else:

	print('Heisei')
import datetime

S = eval(input())
date_a = datetime.datetime(2019, 4, 30)
date_b = datetime.datetime.strptime(S, "%Y/%m/%d")
if date_a >= date_b:
    print("Heisei")
else:
    print("TBD")

s = eval(input())
if (int(s[:4]) >= 2019) and (int(s[5:7]) >= 5):
    print("TBD")
else:
    print("Heisei")

-import datetime - -S = eval(input()) -date_a = datetime.datetime(2019, 4, 30) -date_b = datetime.datetime.strptime(S, "%Y/%m/%d") -if date_a >= date_b: +s = eval(input()) +if (int(s[:4]) >= 2019) and (int(s[5:7]) >= 5): +    print("TBD") +else: -else: -    print("TBD")