#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int s = a[n - 1];
  for (int i = n - 2; i >= 0; --i) {
    if (s >= 0) a[i] = -a[i];
    s += a[i];
  }
  for (int i = 0; i < n; ++i)
    if ((s < 0) ^ (a[i] > 0))
      cout << '+';
    else
      cout << '-';
  return 0;
}
