• + 0 comments

    int main() {

    /* Enter your code here. Read input from STDIN. Print output to STDOUT */    
    int t; 
    scanf("%d", &t);
    
    while(t--)
    {
        char str[10005];
        char s1[10005];
        char s2[10005];
        scanf("%s", str);
        for(int i = 0; i < strlen(str); i++)
        {
            if(i % 2 == 0)
            {
                printf("%c", str[i]);
            }
        }
        printf(" ");
         for(int i = 0; i < strlen(str); i++)
        {
            if(i % 2 != 0)
            {
                printf("%c", str[i]);
            }
        }
        printf("\n");
    
    
    }
    return 0;
    

    }