word = input("Enter a word: ") char =len(word) print("+", "-" * char, "+") print("|", word, "|") print("+", "-" * char, "+")