#include <bits/stdc++.h>
using namespace std;
int n;
long long a[100009];
long long sum = 0;
int ans[100009];
int main() {
  cin >> n;
  for (int i = (1); i <= (n); ++i) cin >> a[i];
  for (int i = n; i >= 1; --i) {
    if (sum > 0) {
      sum -= a[i];
      ans[i] = -1;
    } else {
      sum += a[i];
      ans[i] = 1;
    }
  }
  if (sum < 0)
    for (int i = (1); i <= (n); ++i) ans[i] *= -1;
  for (int i = (1); i <= (n); ++i) cout << (ans[i] > 0 ? '+' : '-');
  return 0;
}
