#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, t, n = 0, c = 0;
  string s;
  cin >> s;
  t = s.size();
  for (i = 0; i < t; i++) {
    if (s[i] == '+') {
      c++;
    } else if (s[i] == '-') {
      n++;
    }
  }
  if (n > c) {
    cout << "-" << (n - c) << endl;
  } else if (c > n) {
    cout << "+" << (c - n) << endl;
  } else {
    cout << 0 << endl;
  }
  return 0;
}
