#include <bits/stdc++.h>
using namespace std;
int main() {
  string s[4];
  int a = 0;
  cin >> s[0] >> s[1] >> s[2] >> s[3];
  if (s[0] == "+")
    a++;
  else if (s[0] == "-")
    a--;
  if (s[1] == "+")
    a++;
  else if (s[1] == "-")
    a--;
  if (s[2] == "+")
    a++;
  else if (s[2] == "-")
    a--;
  if (s[3] == "+")
    a++;
  else if (s[3] == "-")
    a--;
  cout << a << endl;
  return 0;
}
