#include <bits/stdc++.h>
using namespace std;
int main() {
  int wa;
  char s[4];
  cin >> s;
  for (int i = 0; i < 4; i++) {
    if (s[i] = '+')
      wa++;
    else
      wa--;
  }
  cout << wa;
  return 0;
}
