#include <bits/stdc++.h>
using namespace std;
long long a[1000000];
long long vis[1000000];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%I64D", &a[i]);
  long long tmp = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (tmp >= a[i]) {
      tmp -= a[i];
    } else {
      tmp = a[i] - tmp;
      vis[i] = 1;
    }
  }
  int sum = 0;
  for (int i = 0; i < n; i++) {
    if (vis[i] == 1) {
      sum++;
    }
    if (sum & 1) {
      vis[i] = 1;
    } else {
      vis[i] = 0;
    }
  }
  for (int i = 0; i < n; i++) {
    if (vis[i])
      cout << '+';
    else
      cout << '-';
  }
  cout << endl;
  return 0;
}
