#include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
using ll = long long;
#define pi 3.1415926
 
int a[3];
 
int main(){
    string s;
    cin >> s;
    int x = 0;
    for(int i = 0; i < 4; i++){
        if(s[i] == "+")
            x++;
        else 
            x--;
    }
    cout << x;

}