#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000 * 100 + 10;
int a[MAXN];
int main() {
  int n, s = 0;
  cin >> n;
  string ans = " ";
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = n; i > 0; i--) {
    if (s > 0) {
      s -= a[i];
      ans += "-";
    } else {
      s += a[i];
      ans += "+";
    }
  }
  for (int i = n; i > 0; i--) {
    if (s > 0)
      cout << ans[i];
    else
      cout << (ans[i] == '+' ? '-' : '+');
  }
  return 0;
}
