Clean Up Text

Lab Python Beginner 10 points

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
Sample input available Sample output available
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("-", " "))
Output
Answer
HOME LEARN COMMUNITY DASHBOARD