#include<queue>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int ans;
char b;
int main()
{
	scanf("%c",&b);
	while (b!="")
	{
		if (b=="-") ans--;
		    else ans++;
		scanf("%c".&b);
	}
	printf("%d",ans);
	return 0;
}