#C11803. Reverse Words in a Sentence

    ID: 41160 Type: Default 1000ms 256MiB

Reverse Words in a Sentence

Reverse Words in a Sentence

You are given a sentence. Your task is to reverse each word in the sentence while preserving the order of the words.

For example, if the input is hello world, the output should be olleh dlrow.

Note: A word is defined as any contiguous sequence of non-space characters. The input will consist of a single line and the output should also be a single line with each word reversed.

inputFormat

The input consists of a single line containing the sentence.

outputFormat

Output the sentence with each word reversed, while maintaining the original order of words.

## sample
hello
olleh