#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const double EPS = 1e-9;
const double PI = acos(-1.);
int A[100500];
char s[100500];
int main() {
  int N;
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) {
    scanf("%d", &A[i]);
  }
  int cur = A[N - 1];
  s[N - 1] = '+';
  s[N] = 0;
  for (int i = N - 2; i >= 0; --i) {
    if (cur > 0) {
      s[i] = '-';
      cur -= A[i];
    } else {
      s[i] = '+';
      cur += A[i];
    }
  }
  if (cur < 0)
    for (int i = 0; i < N; ++i)
      if (s[i] == '-')
        s[i] = '+';
      else
        s[i] = '-';
  puts(s);
  return 0;
}
