#include <bits/stdc++.h>

using namespace sd;
using ll = long long;

int main(){
  string S;
  cin >> S;
  ll k{0};
  for (char c: S){
    if (c == '-'){
      k--;
    } else {
      k++;
    }
  }
  cout << k;
}