#include <iostream>
#include <string>
#include <cstring>
#include <iomanip>
#include <cmath>
#include <cstdlib>
#include <cstdio>
#include <algorithm>
#include <map>
#include <queue>
#include <vector>
#include <set>
#include <stack>
using namespace std;
#define ll long long
#define maxn 200005
#define angel 0x3f3f3f3f
#define eps 1e-9
#define my_angel main
#define ull unsigned long long
char str[30];
int my_angel()
{
    scanf("%s",str+1);
    int sum=0;
    for(int i=1;i<=4;i++)
    {
        if(str[i]=='+')
            sum++;
        else
            sum--;
    }
    printf("%d\n",ans);
    return 0;
}
