using C=System.Console;class X{static void Main(){for(int z=0;;){int x=0,y=0;foreach(char c in C.ReadLine()){if(c==45)x++;if(c>45)y++;}if(x>0)C.WriteLine(z+=x);if(y>0)C.WriteLine(z+=y);}}}