(function () {
    'use strict';
    var output = 0;
    for (var a = 0; a <= 3; a++) {
        if (a[a] === "+") {
            output++;
        } else { output--; }


    }


console.log(output);





})();