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