August and David are playing a name game. In this game, they are trying to say names backwards as fast as possible. Derek wants to join but he hates losing, so help him create a program that outputs names backwards! Given names, output them backwards each on their own line.
The first line of input with contain integer , the number of names to follow. The following lines will contain one string, the name to be reversed.
For each name, output the name with its letters reversed.
4 Derek August David Phil-Nic
kereD tsuguA divaD ciN-lihP