#include <bits/stdc++.h>
using namespace std;
const int N = 100000;
int n;
int a[N];
char ans[N];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  ans[n - 1] = '+';
  long long sum = a[n - 1];
  for (int i = n - 2; i >= 0; i--)
    if (abs(sum - a[i]) < abs(sum + a[i])) {
      ans[i] = '-';
      sum -= a[i];
    } else {
      ans[i] = '+';
      sum += a[i];
    }
  bool flag = sum < 0;
  for (int i = 0; i < n; i++)
    cout << (flag ? (ans[i] == '+' ? '-' : '+') : ans[i]);
  return 0;
}
