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