function Main(input) {
  input = input.trim()
  input = input.split("")
  var ans = 0;
  for(var i=0;i<4;i++){if(input[i]=="-"){ans--}else{ans++}}
 console.log(ans)
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));