#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, a, s, k, l;
  cin >> n;
  vector<long long> v;
  vector<char> v1;
  vector<pair<long long, long long> > v2;
  s = 0;
  for (i = 0; i < n; i++) {
    cin >> a;
    v.push_back(a);
    s += a;
    v1.push_back('+');
  }
  for (i = n - 1; i > -1; i--) {
    if (s > v[0] && s - 2 * v[i] >= 0) {
      v2.push_back(make_pair(s, i));
      s = s - 2 * v[i];
      v1[i] = '-';
    }
    if (s >= 0 && s <= v[0]) break;
  }
  l = 0;
  reverse(v2.begin(), v2.end());
  while (!(s >= 0 && s <= v[0])) {
    s = v2[l].first;
    k = v2[l].second;
    v1[k] = '+';
    for (i = k - 1; i > -1; i--) {
      if (s > v[0] && s - 2 * v[i] >= 0) {
        s = s - 2 * v[i];
        v1[i] = '-';
      } else
        v1[i] = '+';
    }
    l++;
  }
  for (i = 0; i < n; i++) cout << v1[i];
  return 0;
}
