#include <bits/stdc++.h>
int main() {
  int n;
  std::cin >> n;
  int X = 0;
  std::string line;
  std::vector<std::string> commands;
  for (int i = 0; i < n; ++i) {
    std::cin >> line;
    commands.push_back(line);
  }
  for (int j = 0; j < commands.size(); ++j) {
    if (commands[j] == "X++" or commands[j] == "++X")
      X += 1;
    else
      X -= 1;
  }
  std::cout << X << std::endl;
  return 0;
}
