#include <bits/stdc++.h>
using namespace std;
int main() {
  string a = "";
  string b = "";
  string c = "";
  string d = "";
  cin >> a >> b >> c >> d;
  int st = 0;
  int sec = 0;
  if (a == "+") {
    sec = st + 1;
  } else if (a == "-") {
    sec = st - 1;
  }
  if (b == "+") {
    sec = sec + 1;
  } else if (b == "-") {
    sec = sec - 1;
  }
  if (c == "+") {
    sec = sec + 1;
  } else if (c == "-") {
    sec = sec - 1;
  }
  if (d == "+") {
    sec = sec + 1;
  } else if (d == "-") {
    sec = sec - 1;
  }
  cout << sec;
  return 0;
}
