word = input("Enter some text") val = len(word) print("+", "-" * val, "+") print("|", word, "|") print("+", "-" * val, "+")