#include <bits/stdc++.h>
using namespace std;
char line[1 << 20];
int A[1 << 20], n, sum = 0;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < (n); i++) scanf("%d", A + i);
  reverse(A, A + n);
  for (int i = 0; i < (n); i++) {
    line[i] = '+';
    if (sum > 0)
      sum -= A[i], line[i] = '-';
    else
      sum += A[i];
  }
  if (sum < 0)
    for (int i = 0; i < (n); i++) line[i] = (line[i] == '-') ? '+' : '-';
  reverse(line, line + n);
  puts(line);
  return 0;
}
