#include<stdio.h>
int main (){
  char S[];
  int eat;
  scanf("%s",S);
  for (int i = 0; i <= 0; i++){
    if (S[i] == '+'){
      eat++;
    }else if (S[i]=='-'){
      eat--;
    }else{
      break;
    }
  }
  printf("%d",eat);
  return 0 ;
}
