#C13609. Reverse the Words
Reverse the Words
Reverse the Words
You are given a sentence made up of a series of words separated by spaces. Your task is to reverse the order of these words and output the resulting sentence.
Note: The transformation is only applied to the order of the words, not the characters within them. For example, if the sentence is "hello world this is test", the output should be "test is this world hello". In mathematical notation, if the sequence of words is \(w_1, w_2, \ldots, w_n\), then the output should be \(w_n, \ldots, w_2, w_1\).
inputFormat
The input consists of a single line that contains a sentence. The sentence is composed of space-separated words and may be empty.
outputFormat
Output a single line containing the sentence with the order of words reversed. There should be no extra spaces at the beginning or the end of the output.
## samplehello world this is test
test is this world hello