#include <bits/stdc++.h>
using namespace std;
int n, a[100007];
bool ch[100007];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  long long sum = a[n];
  ch[n] = 1;
  for (int i = n - 1; i >= 1; i--) {
    if (sum > 0) {
      sum -= a[i];
      ch[i] = 0;
    } else {
      sum += a[i];
      ch[i] = 1;
    }
  }
  if (sum < 0) {
    for (int i = 1; i <= n; i++) ch[i] = !ch[i];
  }
  for (int i = 1; i <= n; i++)
    if (ch[i])
      cout << '+';
    else
      cout << '-';
}
