#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
	int i;
	int result = 0;
    char str[8];

	cin >> str;
	while (i = 0; i < 4; i++) {
		if (str[i] == '+') {
			result++;
		} else {
			result--;
		}
	}

	cout << result << endl;
	
	return 0;
}
