function Main(input){

input=input.split("");

answer = 0;

for (i = 0; i < 4; i++) {
    if (input[i] == "+") {
        answer = answer + 1;
    }
    if (input[i] == "-") {
        answer = answer - 1;
    }
}

console.log(answer);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
