"use strict";

function main(arg) {
    const minus = arg.split("\n")[0].split("").filter(n=>n=="-").length;
    const plus  = 4 - minus;
    console.log(plus - minus);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));