char s[11],c[2]; main(b){for(;gets(s);puts(c))for(*c=48,b=0;b<10&&(s[b]+s[b+1]-190);b++)*c+=s[b]!=95;}