Var s:string; i,a:longint; begin readln(s); for i:=1 to length(s) do if (s[i]='-') or (s[i]='*') or (s[i]='/') or (s[i]=',') then inc(a); writeln(a); end.