#include <stdio.h>

int main (){
    int s[4];
    int i;
    int sum = 0;
    for (i = 0; i < 4; i++) {
        scanf("%c", &a[i]);
        if (a[i] = '+') sum ++;
        if (a[i] = '-') sum --;
    }
    printf("%d",sum);
}