#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  if (a == "----") {
    cout << -4 << endl;
  } else if (a == "+---" || a == "-+--" || a == "--+-" || a == "---+") {
    cout << -2 << endl;
  } else if (a == "-+++" || a == "+-++" || a == "++-+" || a == "+++-") {
    cout << 2 << endl;
  } else if (a == "++++") {
    cout << 4 << endl;
  }
  return 0;
}
