#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>
#include<vector>
using namespace std;

int main(void)
{
    int count = 0
    string s;
    cin >> s;
    for(int i = 0; i < 4;i++)
    {
        if(s[i] == '+'){count++;}
        else{count--;}
    }
    cout << count << endl;
    return 0;
}