#include <iostream>
using namespace std;
int main(void){
    string s;
    cin >> s;
    int ans=0;
    for(int i=0,b=1;i<4;i++,b++){
        if(s[b]=='+'){
            ans++;
        }else{
            ans--;
        }
    }cout << ans << endl;
}
    }cout << ans << endl;
}