#include <iostream>
#include <cstring>
using namespace std;
int main (){
    string s;
    int c;
    int q;
    q = 0;
    c = s.size();
    for (int i = 0; i <= c; i++){
        if(s[i] == '+'){
            q = q + 1;
        }else {
            q = q - 1;
        }
    }
    cout << q << endl;
    return 0;
}