const main = (input: void) => {
  const s: string = input;
  let cnt: number = 0;

  for (let i=0; i < s.length; i++) {
    if (s.split('')[i] === '+') {
      cnt = cnt+1;
    } else {
      cnt = cnt-1;
    }
  }
  console.log(cnt);
}

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