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

int main(){
    char c[4];

    int count = 0;

    for(int i=0; i<4; i++){
        cin>>c[i];
        if(c[i] = '+')count++

        else count--;

    }

    cout<<count<<endl;

    return 0;
}