function Main(input) {
	input = input.trim().split("");
  var output = 0;
  for(var i = 0; i < input.length; i++){
    (input.slice(i,i+1) == "+") ? output++ : output--;
  }
  console.log(output);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
