using System;
public class Program
{
public static void Main()
int n = int.Parse(Console.ReadLine());
string str;
string ev;
string odd;
for(int i = 0; i < n; i++)
str = Console.ReadLine();
ev = "";
odd = "";
for(int j = 0; j < str.Length; j++)
if(j % 2 == 0)
ev += str[j];
}else
odd += str[j];
}
Console.WriteLine(ev + " " + odd);