#include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
int n, t, cc, flag[maxn], a[maxn];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  if (n == 1) {
    cout << "+" << endl;
    return 0;
  }
  for (int i = 1; i <= n; i++) flag[i] = 1;
  flag[n] = -1;
  flag[n - 1] = -1;
  t = a[n] - a[n - 1];
  for (int i = n - 2; i >= 1; i--) {
    if (t >= a[i]) {
      t = t - a[i];
      flag[i + 1] *= -1;
      flag[i] *= -1;
    } else {
      t = a[i] - t;
      flag[i + 1] *= -1;
    }
  }
  cc = 1;
  for (int i = 1; i <= n; i++) {
    cc *= flag[i];
    if (cc < 0)
      cout << "-";
    else
      cout << "+";
  }
  cout << endl;
  return 0;
}
