NIKHIL AND STRINGS

3.4

11 votes
Problem

Nikhil is one of the birghtest student in his whole batch and because of this reason every teacher hands over all the work to him. This time his task is to find the middle Character(s) of the string in lower case.

Input

First line inputs Number of test cases 'N'.

Next N lines have N strings.

Output

Print the middle Character(s) of each test case in different line.

Constraint

N<=20

Size of string <= 1000

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?