#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 7, mod = 1e9 + 9, pw = 31;
const double eps = 1e-11;
int n, a[105000];
bool ans[105000];
long long sum = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  bool check = 0;
  for (int i = n; i >= 1; i--) {
    if (sum > 0) {
      sum -= a[i];
      ans[i] = 1;
    } else {
      sum += a[i];
    }
  }
  check = (sum < 0);
  for (int i = 1; i <= n; i++) {
    cout << (ans[i] == check ? '+' : '-');
  }
  return 0;
}
