#include <bits/stdc++.h>
using namespace std;
int main() {
  int a = 0;
  for (int n = 0; n < 4; n++) {
    string b;
    cin >> b;
    if (b == "+") {
      a++;
    } else {
      a--;
    }
  }
  cout << a << endl;
}
