#K84407. Transpose Sentence
Transpose Sentence
Transpose Sentence
Given a sentence in which every individual word has been transposed by reversing its characters, your task is to restore the original sentence. In other words, you need to reverse each word in the input string.
For example, if the input is siht si a tset noitseuq
, the output should be this is a test question
.
Your solution should read input from standard input (stdin) and print the result to standard output (stdout).
inputFormat
The input consists of a single line containing a sentence where each word's characters are in reverse order.
outputFormat
Output a single line representing the original sentence, where each word has been individually reversed back to its correct order.
## samplesiht si a tset
this is a test