#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int *array = new int[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &array[i]);
  }
  int *flag = new int[n];
  flag[n - 1] = 1;
  int tmp = array[n - 1];
  for (int i = n - 2; i >= 0; i--) {
    if (tmp > 0) {
      flag[i] = -1;
      tmp -= array[i];
    } else {
      flag[i] = 1;
      tmp += array[i];
    }
  }
  if (tmp > 0) {
    tmp = 1;
  } else {
    tmp = -1;
  }
  for (int i = 0; i < n; i++) {
    if (flag[i] * tmp == 1) {
      printf("+");
    } else {
      printf("-");
    }
  }
  cout << endl;
  return 0;
}
