Clean Up Text
Completed
Read a line, remove spaces from both ends, replace every - with a space, and print the result.
Input
One line.
Output
The cleaned line.
Example
Input
hello-big-world
Output
hello big world
Editor
Python
Hints
strip() removes leading and trailing whitespace.
replace(old, new) swaps every occurrence.
Solution explanation
Methods can be chained: each one runs on the result of the previous one.
Show solution
print(input().strip().replace("-", " "))