#include <bits/stdc++.h>
int main() {
  int n = 0;
  std::cin >> n;
  std::string arr[n];
  for (int i = 0; i < n; i++) {
    std::cin >> arr[i];
  }
  int count = 0;
  for (int i = 0; i < n; i++) {
    if (arr[i] == "X++" || arr[i] == "++X")
      count++;
    else
      count--;
  }
  std::cout << count << std::endl;
}
