#include <iostream>
#include <cstring>
using namespace std;

int main() {
    string s;
    int num = 0;
    cin >> s;

    for(i = 0; i < 3; i++) {
        if(s[i] == '+') {
            num += 1;
        }
        else {
            num -= 1;
        }
    }

    cout << num << endl;
}