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

using namespace std;

int main(){
	string s;
	int a = 0;

	cin >> s;


	for (int i = 0; i < 4; i++){
		if (s[i] == '+'){
			a++;
		}
		if (s[i] == '-'){
			a--;
		
	}
		cout << a << endl;
		return 0;
	}