#include <bits/stdc++.h>
using namespace std;
int conversion(string p) {
  int num;
  num = atoi(p.c_str());
  return num;
}
string toString(int h) {
  stringstream ss;
  ss << h;
  return ss.str();
}
long long gcd(long long a, long long b) { return (b == 0 ? a : gcd(b, a % b)); }
long long lcm(long long a, long long b) { return (a * (b / gcd(a, b))); }
bool cmp(pair<int, int> a, pair<int, int> b) { return a.first < b.first; }
void solve() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; ++i) {
    cin >> v[i];
  }
  int sum = 0;
  string ans1 = "", ans2 = "";
  for (int i = n - 1; i >= 0; --i) {
    if (sum > 0) {
      sum -= v[i];
      ans1 += '-';
      ans2 += '+';
    } else {
      sum += v[i];
      ans1 += '+';
      ans2 += '-';
    }
  }
  if (sum >= 0)
    for (int i = n - 1; i >= 0; --i) cout << ans1[i];
  else
    for (int i = n - 1; i >= 0; --i) cout << ans2[i];
  cout << endl;
}
int main() {
  solve();
  return 0;
}
