#include <bits/stdc++.h>
using namespace std;
int cmp(int a, int b) { return a > b; }
int main() {
  int n;
  int sum = 0;
  int temp = 0;
  int ns[2005];
  cin >> n;
  for (int i = 0; i < 2 * n; i++) {
    cin >> ns[i];
    temp += ns[i];
  }
  sort(ns, ns + n * 2, cmp);
  for (int i = 0; i < n; i++) {
    sum += ns[i];
  }
  if (sum > temp - sum) {
    for (int i = 0; i < n * 2; i++) {
      cout << ns[i] << " ";
    }
  } else {
    cout << -1;
  }
}
