function Main(input) {
  input = input.split("\n");
  var a = input[0].split('');
  var ans = 0
  for(var i=0; i<a.length; i++) {
    if(a[i] === "+") ans+=1
    if(a[i] === "-") ans-=1
  } 
  console.log(ans);

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