def main():
    name = str(input("Enter Your Name: "))
    MENU = """H - Hello 
    G - Goodbye
    Q - Quit"""
    print(MENU)
    choice = input(">>> ").upper()
    while choice != "Q":
        if choice == "H":
            print("Hello,",name)
        elif choice == "G":
            print("Goodbye,",name)
        else:
            print("Invalid option")
        print(MENU)
        choice = input(">>> ").upper()
    print("Finished")
main()