#include <cstdio>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
  int ans,plus,minus;
  char S;
  cin >> S;
  plus = count(S.cbegin(),S.cend(),'+');
  minus = count(S.cbegin(),S.cend(),'-');
  ans = plus - minus;
  cout << ans <<"\n";
}