Reverse Text

No attempts yetTime limit1sMemory limit128 MB

Problem

In most languages, text is written from left to right. However, some languages are read and written from right to left. As a first step toward a program that automatically translates between a left-to-right language and a right-to-left language in both directions, write a program that reverses the direction of a given text.

Input

The first line contains an integer $T$, the number of test cases. Each of the following $T$ lines contains a single line of text consisting of at most 70 characters. The newline character at the end of each line is not counted as part of the line.

Output

For each test case, print a line containing the characters of the input line in reverse order.