function Main(str) {
  for(var i = 0; i < str.length; i++){
    var s = 0
    if(str[i] == '+'){
      s = s + 1;
    }
    if(str[i] == '-'){
      s = s - 1;
    }
  }
  console.log(s);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));