#include #include #include #include #include using namespace std; #define mem(a,t) memset(a,t,sizeof(a)) #define N 205 #define LL __int64 const double inf=1e15; const double eps=1e-15; char s[N]; char s1[N],s2[N]; int main() { int i,j,n,T; scanf("%d",&T); while(T--) { scanf("%s",s); n=strlen(s); j=0; for(i=0;i=0;i-=2) s2[j++]=s[i]; s1[n/2]=s2[n/2]='\0'; printf("%s\n%s\n",s1,s2); } return 0; }