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