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