#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[100000];
  long long int n = 0, i, j = 0, b, s = 0, m = 0;
  cin >> a;
  for (i = 0; i < strlen(a); i++) {
    if (a[i] == '+') {
      s++;
    } else
      s--;
  }
  cout << s << endl;
  return 0;
}
