#include<iostream>
using namespace std;
int main() {
    int n = 0;
    string s
    cin >> s;
    for(int i = 0; i < (int)s.size(); ++i){
        if(s[i].compare("+")) {
            n += 1;
        } else {
            n -= 1;
        }
    }
    return n;
}
