#include #include int main() { char a[300]; int i; int b[300]; while(gets(a) &&a[0]!='#') { memset(b,0,sizeof(b)); int l=strlen(a); for(i=0;i