var input = "";
process.stdin.resume();
process.stdin.setEncoding("utf8");
process.stdin.on("data", (chunk) => {
  input += chunk;
});
process.stdin.on("end", () => {
  input = input.split("\n");
  console.log(main(0));
});

function main(ans){
  const operation = input[0].split("");
  operation.forEach( op => {
    if(op === "+"){
      ans++;
    }
    if(op === "-"){
      ans--;
    }
  });
  return ans;
}