#include <bits/stdc++.h>
using namespace std;
const int N = 100100;
long long int a[N];
int ans[N];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%lld", &a[i]);
  long long int sum(0);
  for (int i = 1; i <= n; ++i) sum -= a[i];
  for (int i = n; i >= 1; --i)
    if (sum + 2ll * a[i] <= a[1]) sum += 2ll * a[i], ans[i] = 1;
  if (sum >= 0 && sum <= a[1]) {
    for (int i = 1; i <= n; ++i) printf(ans[i] ? "+" : "-");
    return 0;
  }
  sum = 0;
  memset(ans, 0, sizeof(ans));
  for (int i = 1; i <= n; ++i) sum += a[i];
  for (int i = n; i >= 1; --i)
    if (sum - 2ll * a[i] >= 0) sum -= 2ll * a[i], ans[i] = 1;
  for (int i = 1; i <= n; ++i) printf(ans[i] ? "-" : "+");
  return 0;
}
