#include <bits/stdc++.h>
using namespace std;
int main()
{
    string str;
    cin >> str;
    int takahashi = 0;
    for(int i=0;i<4;i++){
        if(str.at(i) == "+"){
            takahashi++;
        }
        else takahashi--
    }
    cout << takahashi;
    return 0;
}