问题2664--Word Reversal

2664: Word Reversal

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

Given a list of words, print the words reversed on separate lines. Each word consists of English letters only.

输入

The input consists of T test cases. The number of test cases (T) is given in the ¯rst line of the input file. Each test case consists of a single line, each line contains a word.

输出

For each test case, print the word reversed on one line.

样例输入 Copy

2
HelloWorld
Madam

样例输出 Copy

dlroWolleH
madaM