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
2017-11-25 12:23:00
soryface try to use less memory consuming varibles and optimize your code so it's shorter
2017-11-18 15:56:08
getting wrong answer for this code
2017-09-23 00:01:39
worked for me in Python3 when I used "if not x%2!=0" for the index of the letter
2017-09-20 16:29:54
where to see my errors ? It's just showing me as compilation error but where to see them ?
2017-08-01 23:31:39
language of qs says somthng else n output shown is smthng else.print every second character from the first half of a given sequence (the first character should appear).first half of "your" is "yo". second chrctr is o nd frst chrctr shud also be prntd, o/p should be yo in frst line.
2017-07-17 14:23:54
Input probably contains multiple words in one string. Got AC after handling that.
2017-07-13 21:25:29
I really don't get what this problem is asking, how can I understand it more?
2017-07-08 20:29:44
i don't know why my code is showing wrong answer...can somebody help.here is the link. http://ideone.com/2He3fT
2017-06-05 15:49:55
Getting run time error sigbus
2017-05-18 03:00:13
How do I get my file so small?
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.