#include using namespace std; char str[10005]; int wen[10005]; int main() { int n; char s; while(cin>>n) { int top=0; for(int j=0;j>wen[j]; } for(char c='A';c<='Z';c++) { for(int i=0;i='A'&&s<='Z') { str[top++]=s; } else { top=0; break; } } if(top==n) { break; } } for(int k=0;k