#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long maxN = 1e5 + 9;
long long n, sum;
long long a[maxN];
long long res[maxN];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (long long i = (1); i <= (n); i++) cin >> a[i];
  for (long long i = (n); i >= (1); i--) {
    if (sum >= 0) {
      sum -= a[i];
      res[i] = 0;
    } else {
      sum += a[i];
      res[i] = 1;
    }
  }
  for (long long i = (1); i <= (n); i++) {
    if (sum < 0) res[i] = !res[i];
    cout << (char)(res[i] ? '+' : '-');
  }
  return 0;
}
