#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<string> str;
  str.resize(4);
  int result = 0;
  for (int i = 0; i < 4; ++i) {
    cin >> str[i];
    if (str[i] == "+") {
      result++;
    }
    if (str[i] == "-") {
      result = result - 1;
    }
  }
  std::cout << result << std::endl;
  return 0;
}
