#include <bits/stdc++.h>
const int maxn = 100010;
int a[maxn], ans[maxn];
int main() {
  int n, s;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%d", a + i);
  s = a[n], ans[n] = 1;
  for (int i = n - 1; i; --i) {
    if (s > 0)
      s -= a[i], ans[i] = 0;
    else
      s += a[i], ans[i] = 1;
  }
  for (int i = 1; i <= n; ++i) printf("%c", ans[i] ^ (s < 0) ? '+' : '-');
  return puts(""), 0;
}
