#include int c,i;main(){while(c=getchar()+1)i+=c==43;printf("%d",i);}