function Main(input) {
	var s = input.trim();
	var sum = 0;
	for(var i=0;i<s.length;i++){
		if(s[i] == '-'){
			sum--;
		} else {
			sum++;
		}
	}
	console.log(sum);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));