var fs = require('fs');
var s = fs.readFileSync('/dev/stdin', 'utf8');
var a = 0;

for (var i = 0; i < s.length; ++i) {
  if (s[i] === '+') {
    ++a;
  } else if (s[i] === '-') {
    --a;
  }
}

console.log(a);
