#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const int inf = 10000000;
int arr[100005];
bool res[100005];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < (n); i++) scanf("%d", &arr[i]);
  int sum = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (sum >= 0) {
      sum -= arr[i];
      res[i] = 1;
    } else {
      sum += arr[i];
    }
  }
  bool cur = 0;
  if (sum < 0) cur = 1;
  for (int i = 0; i < (n); i++) {
    if (cur ^ res[i])
      putchar('-');
    else
      putchar('+');
  }
  puts("");
  return 0;
}
