#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
#define REP(i,x,n) for(int i=x; i<n; i++)
#define rep(i,n) REP(i,0,n)

int main(){
  int ans;
  string s;
  cin >> s;

  rep(i,4){
    if(s[i]=='+') ans++;
    else ans--;
  }
  cout << p-m << endl;
}