#K66607. Reverse Sentence Word Order

    ID: 32458 Type: Default 1000ms 256MiB

Reverse Sentence Word Order

Reverse Sentence Word Order

Given a sentence as input, reverse the order of its words. A word is defined as a sequence of characters separated by whitespace. The sentence may consist of a single word or be empty. Your task is to output the sentence with the order of the words reversed. For example, if the input is "The quick brown fox jumps over the lazy dog", the expected output is "dog lazy the over jumps fox brown quick".

Note: If the input is an empty string, the output should also be an empty string.

The reversal can be understood mathematically as follows: if the sentence consists of words \(w_1, w_2, \dots, w_n\), the output should be \(w_n, w_{n-1}, \dots, w_1\).

inputFormat

The input consists of a single line containing a sentence. The sentence may be empty and words are delimited by spaces.

outputFormat

Output a single line containing the words of the sentence in reverse order. If the input is empty, output an empty line.

## sample
Hello
Hello