#include <stdio.h>
int main(void){
  char s[100];
  count=0,count2=0;
  if(s[count2]=='+'){count++;}
  else {count--;}
  count2++;
      if(s[count2]=='+'){count++;}
  else {count--;}
  count2++;
      if(s[count2]=='+'){count++;}
  else {count--;}
  count2++;
      if(s[count2]=='+'){count++;}
  else {count--;}
printf("%d",count);
    return 0;
  
}