#include<stdio.h>
#include<string.h>
using namespace std;

char s[5];
int main(){
    cin >> s;
    int sum = 0;
    for(int i = 0; i < 4; i++){
        if(s[i] == '+') sum++;
        else sum--;
    }
    cout << sum << endl;
}