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