#include <bits/stdc++.h>
using namespace std;
int n, i, s, c;
int rev[200000], a[200000], zn[200000];
int main() {
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  zn[n - 1] = 0;
  rev[n - 1] = 0;
  s = a[n - 1];
  for (i = n - 2; i >= 0; i--) {
    if (s >= a[i]) {
      zn[i] = 1;
      s -= a[i];
      rev[i] = 0;
    } else {
      zn[i] = 0;
      s = a[i] - s;
      rev[i] = 1;
    }
  }
  c = 0;
  for (i = 0; i < n; i++) {
    if ((zn[i] + c) % 2)
      printf("-");
    else
      printf("+");
    c = c + rev[i];
  }
  printf("\n");
  return 0;
}
