#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>
#include <tuple>
#include <stack>

#define rep(i,n) for (int i = 0; i < (n); ++i)
#define all(x) x.begin(),x.end()
#define print(s) cout << s << endl
typedef long long ll;
using namespace std;

int main() {
    int count = 0;
    string s; cin >> s;
    rep(i,4){
        if s[i] == '-'{
            count--;
        }else{
            count++;
        }
    }
    print(count);
}