#C2511. Reverse Multiple Strings

    ID: 45836 Type: Default 1000ms 256MiB

Reverse Multiple Strings

Reverse Multiple Strings

Given an integer \(n\) followed by \(n\) strings (each on a separate line), output each string reversed. For each string \(s\), its reversed form \(s^R\) must be printed on a new line. Input is taken from stdin and output should be written to stdout.

inputFormat

The first line contains an integer \(n\), representing the number of strings. The following \(n\) lines each contain a single string.

outputFormat

Output \(n\) lines, each containing the reversed version of the corresponding input string.

## sample
3
apple
banana
cherry
elppa

ananab yrrehc

</p>