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