#include <bits/stdc++.h>
using namespace std;

int main () {
  string S;
  cin >> S;
  int cnt = 0;
  
  for (int i = 0; i < S.length(); ++i) {
    if (s[i] == '+') cnt++;
    else cnt--;
  }
  cout << cnt;
}