#K64817. Remove Spaces from a String
Remove Spaces from a String
Remove Spaces from a String
Given a string \( s \), remove all spaces from it while preserving the relative order of the remaining characters. For example, the string "hello world" becomes "helloworld". This problem focuses on basic string manipulation.
You are required to read the input from stdin and print the output to stdout. All spaces (i.e. the character ' ') should be removed, but other whitespace (such as newlines) should be preserved.
inputFormat
The input consists of a single string which may include leading, trailing or multiple spaces. The string is provided via stdin as a whole.
outputFormat
Output the resulting string after removing all spaces. The output should be printed to stdout.
## samplehello world
helloworld