// // File: grille.cc // Author: cteam18 // // Created on November 13, 2011, 9:38 AM // #include #include #include #include #include int main(int argc, char** argv) { static bool A[1001][1001]; static bool B[1001][1001]; static char D[1001][1001]; static char C[4001]; int n; scanf("%d",&n); while(n!=0) { int c=0; for(int i=0;i