#include <bits/stdc++.h>
using namespace std;
bool pos[100005];
long long a[100005], sum;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = n - 1; i >= 0; i--) {
    if (sum > 0) {
      sum -= a[i];
      pos[i] = 0;
    } else {
      sum += a[i];
      pos[i] = 1;
    }
  }
  bool flag = true;
  if (sum < 0) flag = false;
  for (int i = 0; i < n; i++) cout << (!pos[i] ^ flag ? '+' : '-');
  return 0;
}
