import sys
def input(): return sys.stdin.readline().strip()

def main():
    S = input()
    if int(S[5:7]) <= 4: print("Heisei")
    else: print("TBD")



if __name__ == "__main__":
    main() import sys sys def input(): return sys.stdin.readline().strip() input def main():
    S = input()
    if int(S[5:7]) <= 4: print("Heisei")
    else: print("TBD") main S = input() S input() input if int(S[5:7]) <= 4: print("Heisei")
    else: print("TBD") int(S[5:7]) <= 4 int(S[5:7]) int S[5:7] S 5:7 5 7 4 if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def input(): return sys.stdin.readline().strip() def input(): return sys.stdin.readline().strip() input def main():
    S = input()
    if int(S[5:7]) <= 4: print("Heisei")
    else: print("TBD") def main():
    S = input()
    if int(S[5:7]) <= 4: print("Heisei")
    else: print("TBD") main
import sys
def input(): return sys.stdin.readline().strip()

def main():
    S = input()
    if int(S[5:7]) <= 4: print("Heisei")
    else: print("TBD")



if __name__ == "__main__":
    main()
