#include "stdio.h" #include "string.h" #include "memory.h" #define MAX 10000 int main() { int cnt,len, enc, posun=0; while(true) { scanf("%d ", &enc); if (enc==0) break; char pole[MAX]; int k=0; char c = -1; while (c!='\n') { scanf("%c", &c); if (c != ' ' && c!='\n') { pole[k]=(c <= 'z' && c>='a')?(c-('a'-'A')):c; k++; } } //printf("%s\n\n", pole); len = strlen(pole); cnt=0; int maxy=len/enc+1; char vystup[enc][maxy]; memset(vystup, 0, enc*maxy); int i=0; //printf("%d %d", enc, maxy); for (int x=0; x