#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N, X, res;
  res = 0;
  string tmp;
  for (long long i = (0), iLen_ = (4); i < iLen_; i++) {
    cin >> tmp;
    if (tmp[0] == '+')
      res++;
    else
      res--;
  }
  cout << res << endl;
}
