#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:536870912")
#pragma warning(disable : 4996)
using namespace std;
const int N = 1e5 + 100;
int a[N];
bool pl[N];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  long long int sum = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (sum < 0)
      sum += a[i], pl[i] = 1;
    else
      sum -= a[i];
  }
  for (int i = 0; i < n; i++) {
    if (sum < 0) pl[i] = 1 - pl[i];
    printf("%c", pl[i] ? '+' : '-');
  }
  return 0;
}
