#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
	string s;
	cin>>s;
	int ans=0;
	for(int i=0;i<4;i++){
		if(s[i]=='+')ans++;
		else ans--;
	}
    cout<<n<<endl;

	return 0;
}