#include <bits/stdc++.h>
const char sp = ' ';
using namespace std;
int main(void) {
  string S;
  int num = 0;
  for (int i = 0, i_len = (4); i < i_len; ++i) {
    if (S[i] == '+')
      num++;
    else
      num--;
  }
  cout << num << endl;
  return 0;
}
