# input
S = input()

# check
yy, mm, dd = S.split("/")
if int(yy) >= 2019 and int(mm) >= 5:
    print("TBD")
else:
    print("Heisei") S = input() S input() input yy, mm, dd = S.split("/") yy S.split("/") S.split S split "/" mm dd if int(yy) >= 2019 and int(mm) >= 5:
    print("TBD")
else:
    print("Heisei") int(yy) >= 2019 and int(mm) >= 5 int(yy) >= 2019 int(yy) int yy 2019 int(mm) >= 5 int(mm) int mm 5 print("TBD") print "TBD" print("Heisei") print "Heisei" yy, mm, dd = S.split("/") S.split("/") yy dd = S.split("/") S.split("/") dd S = input() input() S mm, dd = S.split("/") S.split("/") mm
# input
S = input()

# check
yy, mm, dd = S.split("/")
if int(yy) >= 2019 and int(mm) >= 5:
    print("TBD")
else:
    print("Heisei")