#K62357. Reverse and Lowercase Strings

    ID: 31513 Type: Default 1000ms 256MiB

Reverse and Lowercase Strings

Reverse and Lowercase Strings

You are given a list of strings. Your task is to reverse each string and convert all characters to lowercase. The program should read the input from standard input and print the processed strings to standard output.

The first line of the input contains an integer n denoting the number of strings. Each of the following n lines contains one string which may include letters, digits, or special characters. For each string, output its reversed version with all letters converted to lowercase on a separate line.

This problem tests your ability to perform basic string manipulation and I/O operations.

inputFormat

The input begins with an integer n (1 ≤ n ≤ 1000) on the first line, which represents the number of strings. The following n lines each contain a non-empty string. Each string may contain alphabets, digits, or special characters.

outputFormat

Output n lines where each line contains the reversed version of the corresponding input string with all characters converted to lowercase.

## sample
2
Hello
World
olleh

dlrow

</p>