using namespace std;
using ll = long long;
using ld = long double;

int main()
{
    string S;
    cin >> S;

    int result = 0;
    for ( int i = 0; i < 4; ++i )
    {
        switch ( S[ i ] )
        {
            case '+': ++result; break;
            case '-': --result; break;
        }
    }

    cout << result << endl;

    return 0;
}