# a, b = map(int, input().split())
li = list(map(int, input().split("/")))
print("Heisei" if li[1] <= 4 else "TBD") li = list(map(int, input().split("/"))) li list(map(int, input().split("/"))) list map(int, input().split("/")) map int input().split("/") ().split () input split "/" print("Heisei" if li[1] <= 4 else "TBD") print "Heisei" if li[1] <= 4 else "TBD" li[1] <= 4 li[1] li 1 4 "Heisei" "TBD" li = list(map(int, input().split("/"))) list(map(int, input().split("/"))) li
# a, b = map(int, input().split())
li = list(map(int, input().split("/")))
print("Heisei" if li[1] <= 4 else "TBD")