#include <bits/stdc++.h>
using namespace std;
long long int arr[1000001];
char str[100001];
int main() {
  ios::sync_with_stdio(false);
  cin.clear();
  long long int t, n, i, j = 0, ans = 0, count = 0, sum = 0, k = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> arr[i];
  }
  i = n - 2;
  str[n - 1] = '+';
  sum = arr[n - 1];
  while (i >= 0) {
    if (sum > 0) {
      sum -= arr[i];
      str[i] = '-';
    } else {
      sum += arr[i];
      str[i] = '+';
    }
    i--;
  }
  for (i = 0; i < n; i++) {
    if (sum < 0) {
      if (str[i] == '+')
        cout << '-';
      else
        cout << '+';
    } else
      cout << str[i];
  }
}
