#include <bits/stdc++.h>
using namespace std;
int n, a[100007];
char op[100007];
int main() {
  int i, s = 0;
  cin >> n;
  for (i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (i = n - 1; i >= 0; --i) {
    if (s <= 0) {
      s += a[i];
      op[i] = '+';
    } else {
      s -= a[i];
      op[i] = '-';
    }
  }
  if (s < 0) {
    for (i = 0; i < n; ++i) {
      op[i] = '+' + '-' - op[i];
    }
  }
  cout << op << endl;
  return 0;
}
