#include <bits/stdc++.h>
using namespace std;
const int N = 100500;
int n;
int a[N];
char ans[N];
int main() {
  set<pair<int, int> > have, dave;
  set<pair<int, int> >::iterator it;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  if (n == 1) {
    puts("+");
    return 0;
  }
  long long sum = 0LL;
  for (int i = n; i >= 1; --i) {
    if (sum > 0LL) {
      ans[i] = '-';
      sum -= (1LL * a[i]);
    } else {
      sum += (1LL * a[i]);
      ans[i] = '+';
    }
  }
  if (sum < 0LL) {
    for (int i = 1; i <= n; i++)
      if (ans[i] == '+')
        ans[i] = '-';
      else
        ans[i] = '+';
  }
  puts(ans + 1);
  return 0;
}
