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

hide comments
seepawar_1: 2017-04-05 15:08:34

I find the noticable output is wrong

arnav1794: 2017-01-30 12:42:50

Working fine on gcc, but not on Ideone. Why?

dklings1: 2017-01-12 23:25:10

I don't get it. My output matches exactly what is asked, yet I keep getting told that I have the wrong answer

darkling: 2016-12-25 15:53:52

Didn't get what runtime error I've got in my start code... But in the end I make it works. Thanks.

akshayborse: 2016-12-11 20:47:51

My program is running neatly and giving perfect answer....but still I am getting an error - runtime error(SIGSEGV).
How to remove this error.
Can anyone please help.

alibilalov: 2016-12-07 09:28:04

how solved please send me

rk_patro007: 2016-12-05 12:49:56

[code snipped by EB]
#WHTS WRONG IN THE PROGRAM..WHY IS THIS NOT ACCEPTED

Last edit: 2016-12-05 13:52:43
dusan_1989: 2016-11-21 20:29:46

I have this error when I copy code on SPOJ: Object reference not set to an instance of an object, but in my Visual Studio there is no error, works fine!

argon448: 2016-11-20 03:55:22

TLE error

glaze: 2016-11-15 13:18:49

Weird.. I had to add a special case to check if there was a white space at the end of each word and remove it as it was in the example input.


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