#include <bits/stdc++.h>
using namespace std;
int n;
int a[100003];
int dd[100003];
void nhap() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
}
void xuli() {
  memset(dd, 0, sizeof(dd));
  int sum = 0;
  for (int i = n; i >= 1; i--) {
    if (sum < 0) {
      sum += a[i];
      dd[i] = 1;
    } else
      sum -= a[i];
  }
  if (sum < 0)
    for (int i = 1; i <= n; i++) dd[i] = 1 - dd[i];
  for (int i = 1; i <= n; i++) {
    if (dd[i] == 1)
      cout << "+";
    else
      cout << "-";
  }
}
int main() {
  nhap();
  xuli();
}
