#K33052. Remove Exclamation Marks from String
Remove Exclamation Marks from String
Remove Exclamation Marks from String
Your task is to remove all exclamation marks from a given string while preserving the spacing and other characters. In mathematical notation, given a string \( s \), the operation is defined as:
[ \text{result} = s \setminus {!} ]
For example, if the input is Hello!!! world! How's it going!!
, the output should be Hello world How's it going
. The solution must read the input from stdin
and write the output to stdout
.
inputFormat
The input consists of a single line containing the string \( s \) which may include letters, spaces, punctuation, and exclamation marks. The length of \( s \) does not exceed \(10^4\) characters.
outputFormat
Output the string after removing all exclamation marks.
## sampleHello!!! world! How's it going!!
Hello world How's it going