#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000 * 1000;
;
long long n;
long long A[MAXN];
bool B[MAXN];
bool C[MAXN];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> A[i];
  long long si = 0;
  bool pi = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (si >= A[i])
      si = si - A[i], B[i] = 0;
    else
      si = A[i] - si, B[i] = 1, C[i] = 1;
  }
  for (int i = 0; i < n; i++) {
    if (B[i] ^ pi)
      cout << "+";
    else
      cout << "-";
    pi ^= C[i];
  }
  return 0;
}
