const input = require('fs').readFileSync('/dev/stdin', 'utf8');

const list = input.split('');

var num = 0;

list.forEach((s) => {
  if (s === '+') {
    num += 1;
  } else {
    num -+ 1;
  }
});

console.log(num);
