#include <bits/stdc++.h>
using namespace std;
template <class T>
using V = vector<T>;
using ll = long long;
using db = double;
using st = string;
using ch = char;
using vll = V<ll>;
using vpll = V<pair<ll, ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
ll sum(ll n) {
  ll m = 0;
  for (ll i = (0); i < (ll)(12); i++) {
    m += n % 10;
    n /= 10;
  }
  return m;
}
signed main() {
  st s;
  cin >> s;
  ;
  ll ans = 0;
  for (ll i = (0); i < (ll)(4); i++) {
    if (s[i] = '-') {
      ans--;
    } else {
      ans++;
    }
  }
  cout << ans << endl;
}
