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