#include <bits/stdc++.h>
using namespace std;
int a[100007];
char sgn[100007];
int main(void) {
  int N;
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) scanf("%d", &a[i]);
  for (int i = N - 1; i--;) {
    sgn[i + 1] = !sgn[i + 1];
    if (a[i] - a[i + 1] < 0) {
      sgn[i] = !sgn[i];
      a[i] = a[i + 1] - a[i];
    } else
      a[i] = a[i] - a[i + 1];
  }
  int k = 0;
  for (int i = 0; i < N; ++i) {
    putchar(sgn[i] ^ k ? '-' : '+');
    k ^= sgn[i];
  }
  putchar('\n');
  return 0;
}
