#include<iostream>
#include<string>
#include<algorithm>
#include<functional>
#include<cmath>

using namespace std;

int main()
{
	string S;
	cin >> S;
	
	int ans = 0
	for (int i = 0; i < 4; i++)
	{
		if (S[i] == '+')
			ans++;
		else
			ans--;
	}

	cout << ans << endl;

	return 0;
}