#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
const long long mod = 1000000007;
const long double pi = acos(-1.0);
const long long inf = 1LL << 60;
signed main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  long long pcnt = 0;
  long long mcnt = 0;
  for (long long i = 0; i < (long long)(4); i++) {
    if (s[i] == '+')
      pcnt++;
    else
      mcnt++;
  }
  cout << 1 + pcnt - mcnt << endl;
  return 0;
}
