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