#include <bits/stdc++.h>
using namespace std;
const long long M = 1000000007;
const double pi = acos(-1);
const int N = 1e5 + 10;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  reverse(a, a + n);
  long long q = a[0];
  string s = "+";
  for (long long i = 1; i < n; i++) {
    if (q > 0) {
      q -= a[i];
      s += '-';
    } else {
      q += a[i];
      s += '+';
    }
  }
  if (q < 0) {
    for (long long i = 0; i < s.size(); i++) {
      if (s[i] == '+')
        s[i] = '-';
      else
        s[i] = '+';
    }
  }
  reverse(s.begin(), s.end());
  cout << s;
}
