text = input("Enter text: ") border = "+" + "-" * len(text) + "+" print(border) print(f"|{text}|") print(border)