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