'use strict';

function Main(INPUT) {
    const S = INPUT.split("");
    let n = 0;
    for (let i = 0; i < S.length; i++) {
        if (S[i] == "+") {
            n++;
        } else {
            n--;
        }
    }
    console.log(n);
}

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