# A
s = list(map(int, input().split("/")))
if s[0] >= 2019 and s[1] >= 5:
    print("TBD")
else:
    print("Heisei") s = list(map(int, input().split("/"))) s list(map(int, input().split("/"))) list map(int, input().split("/")) map int input().split("/") ().split () input split "/" if s[0] >= 2019 and s[1] >= 5:
    print("TBD")
else:
    print("Heisei") s[0] >= 2019 and s[1] >= 5 s[0] >= 2019 s[0] s 0 2019 s[1] >= 5 s[1] s 1 5 print("TBD") print "TBD" print("Heisei") print "Heisei" s = list(map(int, input().split("/"))) list(map(int, input().split("/"))) s
# A
s = list(map(int, input().split("/")))
if s[0] >= 2019 and s[1] >= 5:
    print("TBD")
else:
    print("Heisei")
