#include <bits/stdc++.h>
using namespace std;
long long s;
int arr[10000000];
int main() {
  long long n;
  cin >> n;
  bool f = 0;
  vector<long long> h(n);
  vector<char> u(n);
  for (int i = 0; i < n; i++) cin >> h[i];
  for (int i = n - 1; i >= 0; i--) {
    if (s > 0)
      s -= h[i];
    else {
      arr[i] = 1;
      s += h[i];
    }
  }
  for (int i = 0; i < n; i++)
    if (((s > 0) + arr[i]) % 2)
      cout << "-";
    else
      cout << "+";
  return 0;
}
