#K62002. Reverse Each Word in a Sentence

    ID: 31434 Type: Default 1000ms 256MiB

Reverse Each Word in a Sentence

Reverse Each Word in a Sentence

Given a sentence consisting of words separated by spaces, reverse each word individually while preserving their original order. For each word \(W = w_1w_2\ldots w_n\), its reversal is defined as \(R(W) = w_nw_{n-1}\ldots w_1\).

Your task is to process the input sentence and output the transformed sentence.

inputFormat

The input is provided via stdin as a single line containing a sentence. Words are separated by spaces. The sentence may include letters, digits, and punctuation.

outputFormat

Output the sentence via stdout in a single line where each word has been reversed while the original word order is maintained.

## sample
hello
olleh

</p>