function Main(input) {
    var res = 0;
    for(var i = 0 ; i < 4 ; ++i) {
        input[i] === "+" ? ++res : --res;
    }
    console.log(res);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
