function main(input) {
  const s = input.split(" ")[0];
  var counter = function(str,seq){
    return str.split(seq).length - 1;
  }
  console.log(counter(s,"+")-counter(s,"-"));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));