#include <iostream>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;

int ans;

int main(){
    string s;cin>>s;
    for(int i=0;i<s.length();i++){
        if(i=='+')ans++
        else ans--;
    }
    cout<<ans<<endl;
    return 0;
}