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