#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y,
      z;
  char aa[4];
  a = 0;
  cin >> aa;
  for (int i = (0); i < (4); ++i)
    if (aa[i] == '+')
      ++a;
    else
      -a;
  cout << a << "\n";
}
