#include #include using namespace std; ifstream fin("test.in"); char s[1001]; int i,k,nr,zero,v[1001],j; bool t[1001]; int main() { cin>>s; k=1; t[k]=s[0]-'0'; for(i=0;s[i];i++) { nr=nr*10+(s[i]-'0'); if((i+1)%8==0||s[i+1]=='\0') { zero=0; while(nr%10==0&&nr>0) { zero++; nr/=10; } if(t[k]==1) v[k]=zero; nr=0; k++; t[k]=s[i+1]-'0'; } } k--; //for(i=1;i<=k;i++) cout<