#include #include using namespace std; char* dummy (int len, char * str, int &cnt2){ char *newstr; newstr = new char [len]; int cnt=0; for (int i=0; i= 97){ str[i] -= '\40'; } newstr[cnt++] = str[i]; } } cnt2=cnt; return newstr; } int main () { while (1){ int x=0; cin >> x; if (x == 0) break; cin.ignore(); char pokus[10000]; cin.getline(pokus,10000); int len = strlen (pokus); int cnt=0; char *res = dummy(len,pokus,cnt); if (cnt <= x){ printf("%s\n", res); continue; } int sloup = cnt / x; int modulo = cnt % x; if (modulo){ sloup++; } cout << sloup << " " << modulo<< endl; for(int i=0; i