
#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
#include <complex>

#define forin(i, f, t) for(auto i = f; i < t; i++)

using namespace std;
using ll = long long;


int main() {
    string s;
    cin >> s;
    
    int counter = 0;
    for (auto c : s) {
        counter += c == '+' ? 1 + -1;
    }
    cout << counter << endl;
    
    return 0;
}

