#include <bits/stdc++.h>

using namespace std;

#define REP(i, n) for(int i = 0; i < (n); i++)
#define SORT(v, n) sort(v, v+n);
#define SSORT(v, n) sort(v, v+n, greater<int>())

int main(){
	string s;
	cin >> s;
	int count = 0;
	REP(s,4){
		if(s[i]=='+') count++;
		else count--;
	}
	cout << count << endl;
}