#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  char a, b, c, d;
  a = S.at(0), b = S.at(1), c = S.at(2), d = S.at(3);
  int N = -4;
  if (a == '+') N + 2;
  if (b == '+') N + 2;
  if (c == '+') N + 2;
  if (d == '+') N + 2;
  cout << N << endl;
}
