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

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