inp = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
S = inp.shift()
a = 0
for (i=0; i<S.length; i++) {
    if (S[i] == '+') {
        a++
    } else {
        a--
    }
}
console.log(a)