#C14660. Reverse Each Word in a Sentence

    ID: 44334 Type: Default 1000ms 256MiB

Reverse Each Word in a Sentence

Reverse Each Word in a Sentence

Given a sentence as input, your task is to reverse each individual word while maintaining the original order of the words. Note that the input sentence can include punctuation and multiple spaces. In the output, each word should be reversed, and words should be separated by a single space only.

For example, if the input is:

(\texttt{Hello world from space})

Then the output should be:

(\texttt{olleH dlrow morf ecaps})

</p>

inputFormat

The input consists of a single line that contains the sentence to be processed. The sentence may contain letters, punctuation, and multiple spaces.

outputFormat

Output a single line where each word of the input sentence is reversed while preserving the original order of the words. Words in the output should be separated by a single space.

## sample
Hello
olleH