#include <bits/stdc++.h>
using namespace std;
struct negr {
  int m, d, t, p;
};
char arr2[10000000];
int arr[10000000];
int m, d, p, t, i, j, q, maxx, n, k, mm, nn, ans;
int main() {
  cin >> n;
  for (i = 0; i < n; i++) cin >> arr[i];
  for (i = n; i >= 0; i--) {
    if (ans <= 0) {
      ans += arr[i];
      arr2[i] = '+';
    } else {
      ans -= arr[i];
      arr2[i] = '-';
    }
  }
  if (ans < 0)
    for (i = 0; i < n; i++) {
      if (arr2[i] == '-')
        cout << '+';
      else
        cout << '-';
    }
  else
    for (i = 0; i < n; i++) cout << arr2[i];
}
