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