import std.stdio;void main(){char[]l;int z;while(readln(l)){int x,y;foreach(c;l)x+=c==45,y+=c>45;if(x)writeln(z+=x);if(y)writeln(z+=y);}}