'use strict'

function Main(input) {
  const list = input.split('');
  let answer = 0;

  for(let i=0; i<4; i++) {
    if(list[i] === '+') {
      answer++;
    } else {
      answer--;
    }
  }

  console.log(answer);
}

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