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
2018-09-30 14:26:52
my program is running perfectly on Dev c++ but here it says wrong answer... what is the problem.... i am not able to find it

Last edit: 2018-09-30 14:27:45
2018-09-13 14:18:59
ez
2018-08-21 15:43:12
When i am running my code on ideone,it shows correct output but after submitting my solution the result is "wrong answer".
2018-07-11 20:45:51
I am getting my answer correct while I am doing it in codelite i.e an offline ide but in this, it is showing the wrong answer. What to do? Please tell me ASAP.
2018-06-23 04:22:13
got SIGSEGV on this, i took each input in one loop iteration
2018-06-09 05:54:24
i dont understand why my code is compilation error, bcs in my geany the output is right
2018-05-27 01:24:37 Roentgen
doesn't matter whether it's 2k or 2k+1 if you use an integer to get to the halfway mark. Besides the problem statement does mention "Start ,,, first char...."
2018-03-30 01:09:29 Stephen Oberholtzer
WARNING: Problem description is inconsistent with judging.

1. The most obvious discrepancy is that the problem description says "every second character", but it actually means "every other character starting with the first".

2. Secondly, statement clearly states -- twice -- that each line will be 2k characters, but some of the test cases have lines that are 2k+1 characters.
2018-03-16 04:48:03
oh i see, i think i should try to handle 2 characters from input.
2018-01-24 17:36:07
getting TLE when using 2D array for storing strings using scanf . somebody help
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.