'use strict';

const receive = require('fs')
  .readFileSync('/dev/stdin', 'utf8')
  .split(/\s/);

const main = input => {
  const S = input[0].split('');
  const ans = S.filter(i => i === '+').length - S.filter(i => i === '-').length;
  console.log(ans);
};

main(receive);