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

void solve(){

signed main(){
  solve();
}#include<bits/stdc++.h>
using namespace std;

using ll=long long;



void solve(){
    string s;
    cin>>s;
    int cnt=0;
    for(auto c:s){
        if(c=='+'){
            cnt++;
        }else{
            cnt--;
        }
    }   
    cout<<cnt<<endl;
}

signed main(){
    //while(1)
    solve();
}