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