#include <stdio.h>

int main(void){
	char[4] s;
  	int i = 0;
  	int k = 0;
  	for(i = 0; i < 4; i++)
      scanf("%c"&s[i]);
  	i = 0;
  	while(i < 4){
      if(s[i] == '+')
        k = k + 1;
      else if(s[i] == '-')
        k = k - 1;
      else
        
      i++;
}
  	printf("%d",k);
  	return 0;
}