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