#include <bits/stdc++.h>
using namespace std;
template <class stl>
void DBGSTL(stl a) {
  for (__typeof((a).begin()) i = (a).begin(); i != (a).end(); i++) {
    cerr << *i << " ";
  }
  cerr << "\n";
  return;
}
vector<int> v;
int sign[100005];
int main() {
  int n, x;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    v.push_back(x);
  }
  int sum = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (sum < 0) {
      sum += v[i];
      sign[i] = 0;
    } else {
      sum -= v[i];
      sign[i] = 1;
    }
  }
  x = 0;
  if (sum < 0) {
    x = 1;
  }
  for (int i = 0; i < n; i++) {
    printf("%c", (sign[i] == x) ? '+' : '-');
  }
  printf("\n");
  return 0;
}
