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