#include <bits/stdc++.h>
using namespace std;
 
int main(){
    String S;
    cin >> S;

    int n = S.length();
    int count = 0;
    for (int i = 0; i < n; i++){
        if (S[i] == '+'){
            count++;
        }
        else {
        count--;
        }
    }
    cout << count << endl;
}