#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int len,i,j; double sum; char data[80]; while(scanf("%s",data)==1&&strcmp(data,"#")!=0){ len = strlen(data); sum = 0; for(i=0;i<len;i++){ if(data[i]==‘.‘)sum++; if(data[i]==‘_‘)continue; if(data[i]==‘|‘){ for(j=i-1;j>-1;j--){ if(data[j]==‘_‘)continue; if(data[j]==‘.‘){ sum += 0.5; break; } if(data[j]==‘|‘||data[j]==‘\\‘)break; } if(j==-1){ sum += 0.5; } for(j=i+1;j<len;j++){ if(data[j]==‘_‘)continue; if(data[j]==‘.‘){ sum += 0.5; break; } if(data[j]==‘|‘||data[j]==‘/‘)break; } if(j==len){ sum += 0.5; } } if(data[i]==‘/‘){ for(j=i-1;j>-1;j--){ if(data[j]==‘_‘)continue; if(data[j]==‘.‘){ sum += 1; break; } if(data[j]==‘|‘||data[j]==‘\\‘)break; } if(j==-1){ sum += 1; } } if(data[i]==‘\\‘){ for(j=i+1;j<len;j++){ if(data[j]==‘_‘)continue; if(data[j]==‘.‘){ sum += 1; break; } if(data[j]==‘|‘||data[j]==‘/‘)break; } if(j==len){ sum += 1; } } } printf("%.0lf\n",floor(sum*100.0/len)); } return 0; }