#include <stdio.h>
 
int main()
{
	int x = 0;
	char takahashi[5];
        char takahashi_[5];

	takahashi_ = scanf("%s", takahashi);
	
	for(int i = 0; i < 4; i++)
	{
		if (takahashi_[i] == '+')
		{
			x++;
		}
		else if (takahashi_[i] == '-')
		{
			x--;
		}	
	}
	printf("%d", x);
	return 0;
}