#include <bits/stdc++.h>
using namespace std;
char a[100000];
int main() {
  gets(a);
  int t = strlen(a);
  int n = 0;
  for (int i = 0; i < t; i++) {
    if (a[i] == '+') n++;
    if (a[i] == '-') n--;
  }
  cout << n << endl;
  return 0;
}
