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