#include <bits/stdc++.h>
using namespace std;
int v[100010];
int main() {
  int n, cnt;
  string s;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &v[i]);
  if (n == 1) {
    printf("+\n");
    return 0;
  }
  if (n == 2) {
    printf("-+\n");
    return 0;
  }
  s = "-+";
  cnt = v[n] - v[n - 1];
  for (int i = n - 2; i >= 1; i--) {
    if (cnt > 0) {
      s = '-' + s;
      cnt = cnt - v[i];
    } else {
      s = '+' + s;
      cnt = cnt + v[i];
    }
  }
  if (cnt < 0)
    for (int i = 0; i < s.size(); i++)
      if (s[i] == '+')
        cout << '-';
      else
        cout << '+';
  else
    cout << s;
  cout << endl;
  return 0;
}
