Reverse Word Order

No attempts yetTime limit5sMemory limit512 MB

Problem

You are given lists of words separated by spaces, one list per line. Print the words of each line in reverse order.

A line holds ww English words and LL letters in total. Each line contains only letters and spaces, and exactly one space separates two neighboring words.

Input

The first line contains NN, the number of cases.

Each of the next NN lines is one case and holds words separated by spaces. No line starts or ends with a space.

  • 1N1001 \le N \le 100
  • 1L251 \le L \le 25

Output

Print one line per case. For case number xx, print Case #x: first, then the words of that line in reverse order, separated by one space.