#K93412. Word Order Decoder
Word Order Decoder
Word Order Decoder
You are given an encoded message containing a sequence of words separated by spaces. Your task is to decode the message by reversing the order of the words.
For example, if the input is hello world
, the output should be world hello
.
The input consists of a single line, and the output should be the decoded message.
In mathematical terms, if the input string is represented as \(S = w_1\;w_2\;...\;w_n\), then the output should be \(w_n\;...\;w_2\;w_1\).
inputFormat
A single line containing an encoded message. The message consists of words separated by spaces. The length of the message does not exceed 1000 characters.
outputFormat
A single line containing the decoded message with the order of the words reversed, separated by a single space.
## samplehello world
world hello