#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  string s;
  cin >> s;
  for (int i = 0; i < (int)s.size(); ++i) {
    if (s[i] == '+') {
      n += 1;
    } else {
      n -= 1;
    }
  }
  return n;
}
