#include <bits/stdc++.h>
using namespace std;
int main() {
  string srt;
  int i, l = 0, r = 0;
  int k;
  cin >> srt;
  for (i = 0; i < srt.size(); i++) {
    if (srt[i] == 43) {
      l++;
    } else if (srt[i] == 45) {
      r++;
    }
  }
  k = l - r;
  cout << k;
  return 0;
}
