#include <bits/stdc++.h>
int main(void) {
  size_t n, i = 0, x = 0;
  char ch;
  scanf("%i", &n);
  while (i < n) {
    ch = getchar();
    if (ch == '+' || ch == '-') {
      if (ch == '+')
        x++;
      else
        x--;
      getchar();
      i++;
    }
  }
  printf("%i", x);
  return 0;
}
