const main = input => {
  const S = input.trim()
  let count = 0
  for (let i = 0; i < S.length; i++) {
    if (S.charAt(i) === '+') {
      count++
    } else {
      count--
    }
  }

  console.log(count)
}
// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
