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