'use strict'

function main(s) {

  s = s.split('\n')[0].split('');

  let plus = 0;
  let minus = 0;

  for (let i = 0; i < s.length; i++) {
    if (s[i] === '+') plus++;
    if (s[i] === '-') minus++;
  }

  console.log(plus - minus);
}

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