#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  string ans = "-", ans1 = "+";
  int sum = -a[n - 1];
  for (int i = n - 2; i >= 0; i--) {
    if (sum > 0)
      ans += '-', ans1 += '+', sum -= a[i];
    else
      ans += '+', ans1 += '-', sum += a[i];
  }
  reverse(ans.begin(), ans.end());
  reverse(ans1.begin(), ans1.end());
  if (sum > 0)
    cout << ans;
  else
    cout << ans1;
  cout << endl;
}
