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