#include <bits/stdc++.h>
using namespace std;
long long int a[1000001], store[1000001];
int main() {
  ios::sync_with_stdio(false);
  ;
  cin.tie(0);
  ;
  long long int i, j, n, sum = 0;
  cin >> n;
  for (i = 1; i <= n; i++) cin >> a[i];
  sum = a[n];
  store[n] = 1;
  for (i = n - 1; i >= 1; i--) {
    if (sum < 0) {
      sum += a[i];
      store[i] = 1;
    } else {
      sum -= a[i];
      store[i] = -1;
    }
  }
  if (sum >= 0 && sum <= a[1]) {
    for (i = 1; i <= n; i++) {
      if (store[i] == 1)
        cout << "+";
      else
        cout << "-";
    }
    return 0;
  }
  for (i = 1; i <= n; i++) {
    if (store[i] == 1)
      cout << "-";
    else
      cout << "+";
  }
  return 0;
}
