#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:16000000")
const int INF = 1e9;
const double EPS = 1e-8;
const double PI = 2 * acos(0.);
int a[100500];
bool ans[100500];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    scanf("%d", &a[i]);
  }
  ans[n - 1] = true;
  int s = a[n - 1];
  if (n > 1) {
    ans[n - 2] = false;
    s -= a[n - 2];
  }
  for (int i = n - 3; i >= 0; --i) {
    if (s < 0) {
      ans[i] = true;
      s += a[i];
    } else {
      ans[i] = false;
      s -= a[i];
    }
  }
  for (int i = 0; i < n; ++i) {
    if (s < 0) ans[i] = !ans[i];
    printf(ans[i] ? "+" : "-");
  }
  return 0;
}
