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
2023-07-03 06:43:08
Great, expected output is identcical to mine output, bo I'm getting wrong answer...
2023-06-14 18:51:09
Had to use ceil for rounding up to upper number.
2021-09-03 15:32:23
how to do it in c
2021-08-02 15:56:15
At ideone length of "your" is equal 5 :X
This is why It shows me 'wrong answer'

Last edit: 2021-08-02 15:56:51
2021-07-08 16:11:14
Simple problem
2021-06-25 15:49:08
Ao that day
2021-05-22 16:36:14
I am getting the correct answer on my compiler but here it is showing compilation error.
2021-05-14 19:02:41
i am getting the correct answer on my compiler but here it is showing runtime error.
2021-03-30 16:27:02
run time error even all test cases passed. sigabrt
2020-06-25 21:39:26
I am stumped with this one

[NG]: Quit spamming or you'll get your account blocked.

Last edit: 2020-06-26 05:51:15
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.