function main(input) {
    var ans = 0;
    var s = input[0].split("").forEach(v=>{
        ans = eval("ans" + v + "1");
    })
    console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
