#include<stdio.h>
int main(void){
  int answer;
  int i;
  char s[10];
  scanf("%d",&s);
  for (i=0;1<4;i++){
    if s[i]=="+" answer++;
    if s[i]=="-" answer--;
  }
  printf("%d",answer);
  return 0;
}