import std.stdio, std.conv, std.string, std.math, std.regex, std.range, std.ascii, std.algorithm;

void main(){
	auto S = readln.chomp.to!(char[]);
	int count;
	foreach(i; 0..3){
		if(S[i] == '+') count++;
		else count--;
	}
	writeln(count);
}