#include <stdio.h>
int main()
{
	int takahashi;
	takahashi = 0;
	char idea[4];
	scanf ("%s",idea);
	for (i=0; i<4; i++){
		if (idea[i] == "+"){
			takahashi += 1;
		}
		else if (idea[i] == "-"){
			takahashi -= 1;
		}
	}
	printf ("%d\n", takahashi);
	return 0;
}