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
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
2020-06-03 17:51:10
I am getting sigbart error, how can I fix this error?
2020-04-30 06:42:37
just initialize a loop, take a condition half the size of string and increment it by 2
meanwhile adding each time, store each character in the other string
2020-03-30 23:53:28
the statement is confusing. need to revise
2020-02-08 14:14:10
those who are getting run time error ,try to decrease size of array
2019-06-10 17:18:27
done it with loops :p
2019-05-14 08:56:34
what does second character in a string??
when we consider second character in "Hello" it is 'e'
but the output of the problem is taking the second index not the character, how second character became second index i am confused
2019-04-19 22:25:41
hey please help me out I am getting the correct answer on my compiler but here it shows runtime error
2019-04-14 18:17:37
hey please help me out I am getting the correct answer on my compiler but here it shows runtime error
2019-04-13 20:23:36
i am getting the runtime error in my code please help me
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.