#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int i, j;
  cin >> n;
  int m = 0;
  int a[100001];
  char b[100001];
  for (j = 0; j < n; j++) scanf("%d", &a[j]);
  b[n - 1] = '+';
  int t = a[n - 1];
  int f[100001];
  for (i = n - 2; i >= 0; i--) {
    if (t > a[i]) {
      t -= a[i];
      b[i] = '-';
    } else {
      t = a[i] - t;
      b[i] = '+';
      f[i + 1] = 1;
    }
  }
  int p = 1;
  for (i = 0; i < n; i++) {
    if (f[i] == 1) p *= -1;
    if (p > 0) {
      cout << b[i];
    } else {
      switch (b[i]) {
        case '+':
          cout << '-';
          break;
        case '-':
          cout << '+';
          break;
      }
    }
  }
  return 0;
}
