#include <bits/stdc++.h>
using namespace std;
void puto(bool x) {
  if (x)
    cout << '+';
  else
    cout << '-';
}
int main() {
  long n, a[200000];
  bool sig[200000];
  long l;
  cin >> n;
  for (long i = 0; i < n; i++) cin >> a[i];
  l = a[n - 1];
  for (long i = n - 2; i >= 0; i--) {
    if (a[i] - l > 0) {
      sig[i] = true;
      l = a[i] - l;
    } else {
      sig[i] = false;
      l = l - a[i];
    }
  }
  bool s = true;
  for (long i = 0; i <= n - 2; i++) {
    if (sig[i]) {
      puto(s);
      s = !s;
    } else {
      puto(!s);
    }
  }
  puto(s);
}
