#include <iostream>
#include <string>

int EatingSymbolsEasy(void) {
	std::string line;
   std::cin >> line;

	const char* str = line.data();
	int res = 0;
	for (int i = 0; i < 4; i++) {
		if (str[i] == '+')
			res++;
		else
			res--;
	}
	std::cout << res;
	return 0;
}