function main(input) {
   input = input.trim();
  const a = input.split("");
 var ans =0;
  a.forEach(function(a) { 
    ans+=(a == "+"?1:-1);
  });
 console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));