
import std.conv;
import std.stdio;
import std.string;

void main()
{
	auto s = readln.strip;
	writeln( solve( s ) );
}

auto solve( in string s )
{
	auto r = 0;
	foreach( c; s )
	{
		if( c == '+' ) r++;
		else           r--;
	}
	
	return r;
}

unittest
{
	assert( solve( "+-++" ) == 2 );
	assert( solve( "-+--" ) == -2 );
	assert( solve( "----" ) == -4 );
}
