#include<iostream>
using namespace std;

int main(){`
    string s;
    int count = 0;
    cin >> s;

    for(int i = 0; i < 4; i++){
        if(s.at(i) == '+'){
            count += 1;
        }else if(s.at(i) == '-'){
            count -= 1;
        }
    }
    cout << count << endl;

    return 0;
}