#include <stdio.h>
int main(void){
  int sum = 0;
  int i = 0;
  char tmp[5];
  
  scanf("%s",tmp);
  
  for(i=0;i < 4 ; i++){
    if(tmp[i] == "+"){
      sum++;
    }else if(tmp[i] == "-"){
      sum--;
    }
  }
  return 0;
}