#include "stdafx.h"
#include <iostream>
using namespace std;
#include <string>
int main()
{
	string s;
	cin >> s;
	int ans = 0;
	for (char& c : s) {
		ans += (c == '+');
		ans -= (c == '-');
	}

	cout << ans<<endl;



    return 0;
}

