#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int ans[100006] = {};
std::pair<int, int> a[100006] = {};
int main(int argc, char* argv[]) {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(NULL);
  std::cout.tie(NULL);
  ;
  int n;
  cin >> n;
  long long int s1 = 0, s2 = 0;
  for (int i = (0); i < (n); i += (1))
    cin >> a[i].first, a[i].second = i, ans[i] = +1;
  int lim = a[0].first;
  int sum = a[n - 1].first;
  for (int i = (n - 2); i >= (0); i -= (1)) {
    if (sum > 0) {
      sum -= a[i].first;
      ans[i] = -1;
    } else {
      sum += a[i].first;
    }
  }
  if (sum < 0)
    for (int i = (0); i < (n); i += (1)) ans[i] *= -1;
  for (int i = (0); i < (n); i += (1)) cout << (ans[i] <= 0 ? "-" : "+");
  return 0;
}
