#include<stdio.h>
#include<math.h>
int main(){
  char a[4];
  int i,ans = 0;
  for (=0;i<4;i++){
    scanf("%c",a[i]);
    if(a[i]=='+') ans++;
    if(a[i]=='-') ans--;
  }
  printf("%d",ans);
  return 0;
  
}