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