Help me in solving GSCP08 problem

My issue

My code

//fill the _ in the IDE to continue
#include <stdio.h>

int main() {
    char A[10], B[10];
    char C[10], D[10], E[10];
    char F[10], G[10],H[10],I[10];
    scanf("%s %s", A , B );
    scanf("\n%s %s %s", C, D, E );
    scanf("\n%s %s %s %s", F , G, H, I );
    printf("\n%s %s %s %s %s %s %s %s %s", A , B , C , D , E , F , G , H , I );  
    return 0;
}

Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@gdawar_19
Don’t Use \n in the scanf and printf