"use strict"

function main(input) {
    input = input.split('')
        //input = input.map(x => Number(x + 1))
        //let ans = input.reduce((x, y) => x + y)
    let ans = 0;
    for (let i in input) {

        if (input[i] == '+') {
            ans++;
        } else {

            ans--;
        }
    }
    console.log(ans)

}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
