// #include <bits/stdc++.h>
#include "bits:stdc++.h"
using namespace std;
#define pb push_back
#define LLINF 1234567890987654321
#define INF 1234567890
#define f first
#define s second
#define flase false
#define db 0
typedef long long ll;
typedef pair <ll, ll> pi;
typedef pair <ll, pi> spi;
typedef pair<pi, pi>dpi;
int main()
{
	int ans = 0;
	for(ll i = 1; i <= 4; i++)
	{
		char ch;
		cin >> ch;
		if(ch == '+')
		{
			ans ++;
		}
		else
		{
			ans --;
		}
	}
	cout << ans << "\n";
}
