#include <bits/stdc++.h>
using namespace std;
const int fx[] = {+1, -1, +0, +0};
const int fy[] = {+0, +0, +1, -1};
vector<long long int> v, res;
priority_queue<int, vector<int>, greater<int> > pq;
stack<long long int> stk;
string s1;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int a, b, c, d, e, f, i, j, x, k, cnt1 = 0, id = 0, chk = 0,
                                              sum = 0, cnt2 = 0;
  cin >> s1;
  for (i = 0; i < s1.size(); i++) {
    if (s1[i] == '-') {
      sum--;
    } else {
      sum++;
    }
  }
  cout << sum;
  return 0;
}
