#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 10;
int nums[MAXN];
bool solve(int cur, string& ret, int i) {
  if (i == -1) {
    if (0 <= cur && cur <= nums[0]) return true;
    return false;
  }
  if (cur == 0) {
    ret.push_back('+');
    if (solve(nums[i], ret, i - 1)) return true;
    ret.pop_back();
    ret.push_back('-');
    if (solve(-nums[i], ret, i - 1)) return true;
    ret.pop_back();
    return false;
  }
  if (cur > 0) {
    ret.push_back('-');
    if (solve(cur - nums[i], ret, i - 1)) return true;
    ret.pop_back();
    return false;
  }
  ret.push_back('+');
  if (solve(cur + nums[i], ret, i - 1)) return true;
  ret.pop_back();
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> nums[i];
  }
  string ret;
  assert(solve(0, ret, n - 1));
  reverse(ret.begin(), ret.end());
  cout << ret << endl;
  return 0;
}
