#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, l, x, m, n, k;
  cin >> a >> b >> c >> d;
  x = 0;
  if (a == '+') l == x + 1;
  if (a == '-') l == x - 1;
  if (b == '+') m == l + 1;
  if (b == '-') m == l - 1;
  if (c == '+') n == m + 1;
  if (c == '-') n == m - 1;
  if (d == '+') k == n + 1;
  if (d == '-') k == n - 1;
  cout << k;
  return 0;
}
