<filename>6.py
# https://www.hackerrank.com/challenges/30-review-loop/problem

for T in range(int(input())): 
    s = input()
    print(s[::2]+" "+s[1::2])
<filename>6.py
# https://www.hackerrank.com/challenges/30-review-loop/problem

for T in range(int(input())): 
    s = input()
    print(s[::2]+" "+s[1::2])
# https://www.hackerrank.com/challenges/30-review-loop/problem