var process = function (input) {
    var ret = 0;
    for (var i = 0; i < input.length; i++) {
        if (input[i] === "+") {
            ret++;
        }
        else {
            ret--;
        }
    }
    return ret;
};
var Main = function (input) {
    //const num = parseInt(input)
    var ary = input.split("");
    console.log(process(ary));
};
Main(require("fs").readFileSync("/dev/stdin", "utf8"))