#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:50000000")
using namespace std;
long long arr[100010];
long long s[100010];
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "+";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  s[n - 1] = arr[n - 1];
  for (int i = n - 1; i > 0; i--) {
    s[i - 1] = max(s[i], arr[i - 1]) - min(s[i], arr[i - 1]);
  }
  for (int i = 0; i < n - 1; i++) {
    if (s[i] == s[i + 1] - arr[i]) {
      cout << "-";
      if (i == n - 2) cout << "+";
    } else {
      cout << "+";
      if (i == n - 2) cout << "-";
      s[i + 1] = -s[i + 1];
    }
  }
  return 0;
}
