#include <bits/stdc++.h>
int main(void) {
  char s[100];
  int 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;
}
