#include <bits/stdc++.h>
using namespace std;
char inver(char s) {
  if (s == '+') return '-';
  return '+';
}
int main() {
  int n;
  string s = "";
  cin >> n;
  vector<bool> flag(n);
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    flag[i] = false;
    s = s + "+";
  }
  while (n > 1) {
    if (a[n - 1] >= a[n - 2]) {
      a[n - 2] = a[n - 1] - a[n - 2];
      s[n - 2] = '-';
    } else {
      a[n - 2] = a[n - 2] - a[n - 1];
      s[n - 2] = '+';
      flag[n - 2] = true;
    }
    a.resize(n - 1);
    n = n - 1;
  }
  int t = 0;
  for (int i = 0; i < s.length(); i++) {
    if (t % 2 == 0)
      cout << s[i];
    else
      cout << inver(s[i]);
    if (flag[i]) t++;
  }
  cout << endl;
}
