#include<stdio.h>
int main()
{ int n,bed,i,j,mis;
char str[256];
char ch;
while(1){
scanf("%d",&n);
getchar();
if(n == 0) break;
bed = 0;
i = 0;
mis = 0;
while((ch = getchar())!='\0'&&ch != '\n'){
for(j = 0;j<=i;j++)
if(str[j] == ch) {
bed--;
str[j] = '0';
break;
}
if(bed == n && j>i) {
mis++;
getchar();
}
else if(j>i) {str[i++] = ch;
bed++;}
}
if(mis) printf("%d customer(s) walked away.\n",mis);
else printf("All customers tanned successfully.\n");
}
return 0;
}