#include #include #include using namespace std; int main(void) { char str[10010]; char str2[10010];// string str2; int step, fullLenght=0; int actIndex; int delka; int result; char pis; int g; int i = 0; do { scanf("%d\n", &step); if(step==0) break; i = 0; g = getchar(); while (g != '\n') { if(g == ' ') { g = getchar(); continue; } if(g>= 'a' && g<= 'z') { g-=32; } str[i++] = g; g = getchar(); } //fullLenght=0; fullLenght = delka = i; actIndex=0; //delka=str.length(); //for(int i=0; i