STRHH - Half of the half

Given a sequence of 2*k characters, please print every second character from the first half of the sequence. Start printing with the first character.

Input

In the first line of input you are given the positive integer t (1<=t<=100) - the number of test cases. In the each of the next t lines, you are given a sequence of 2*k (1<=k<=100) characters.

Output

For each of the test cases please please print every second character from the first half of a given sequence (the first character should appear).

Example

Input:
4
your 
progress 
is 
noticeable

Output:
y
po
i
ntc

Added by:kuszi
Date:2012-09-01
Time limit:1s-1.289s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64

hide comments
2020-06-03 17:51:10
I am getting sigbart error, how can I fix this error?
2020-04-30 06:42:37
just initialize a loop, take a condition half the size of string and increment it by 2
meanwhile adding each time, store each character in the other string
2020-03-30 23:53:28
the statement is confusing. need to revise
2020-02-08 14:14:10
those who are getting run time error ,try to decrease size of array
2019-06-10 17:18:27
done it with loops :p
2019-05-14 08:56:34
what does second character in a string??
when we consider second character in "Hello" it is 'e'
but the output of the problem is taking the second index not the character, how second character became second index i am confused
2019-04-19 22:25:41
hey please help me out I am getting the correct answer on my compiler but here it shows runtime error
2019-04-14 18:17:37
hey please help me out I am getting the correct answer on my compiler but here it shows runtime error
2019-04-13 20:23:36
i am getting the runtime error in my code please help me
2019-02-26 23:05:10
Ac in first go..
Easy Basic Problem, just print all second char (array start from zero + must including first char ) .
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.