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
2015-10-01 13:29:56
It times out with "Python 3.4" but works fine when "Python 3 (python 3.4)" is selected. Don't know why??
2015-09-28 21:14:52 Monkey D. Luffy
My code is working after I switched from scanf to cin and printf to cout . Problem setter or spoj moderator can u please confirm that it is working with scanf or printf or not . If not then what is the cause of this problem.
2015-09-25 12:51:04
my code passes on ideone and devc++, here it gives a runtime error .. why >>
2015-09-23 20:56:43 Prakhar Dev Gupta
Gives me Runtime Error though it passes every test case? Why??

Last edit: 2015-09-23 20:57:11
2015-09-18 19:04:23
i can't understand 2*k character means.
2015-09-13 07:58:00
If I submit the solution with "Python 3.4" it times out. However, with "Python 3 (python 3.4)" it works. !?!?!?!
2015-09-11 19:25:47
my code works fine on ideone but it giver compilation error here
2015-09-11 09:23:40
output for "smile" ??
EDIT: sorry, ignore... length 2*k (didn't see)

Last edit: 2015-09-11 09:26:36
2015-09-08 07:36:39
mine too
it has some problem with stdin
2015-09-07 19:04:48 Vivek
If using C++ std::string, take care of reading String using getline() after cin. Simple problem. AC in 5 min.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.