#include <bits/stdc++.h>
using namespace std;
char c[100005];
int n, a, sum;
int main() {
  vector<int> v;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    v.push_back(a);
  }
  for (int i = n - 1; i >= 0; i--) {
    if (sum + v[i] <= v[i])
      sum += v[i], c[i] = '+';
    else
      sum -= v[i], c[i] = '-';
  }
  if (sum < 0) {
    for (int i = 0; i < n; ++i) {
      c[i] = (c[i] == '+' ? '-' : '+');
    }
  }
  for (int i = 0; i < n; ++i) cout << c[i];
  return 0;
}
