function main(input) {
  let ans = 0;
  const S = input.split('');
  
  for (let i = 0; i < S.length; i++) {
    if(S[i] === '+') {
      ans++;
    } else {
      ans--;
    }
  }
  
  console.log(ans);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));