#include #include int main() { int i,j,sum; char a[5],b[80]; while(gets(a)) { if(a[0]=='#') break; else gets(b); for(i=0;i