#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, a[20005], sumd = 0, sumi = 0;
  cin >> n;
  for (int i = 0; i < 2 * n; i++) {
    cin >> a[i];
  }
  sort(a, a + 2 * n);
  for (int i = 0; i < n; i++) {
    sumd += a[i];
  }
  for (int i = n; i < 2 * n; i++) {
    sumi += a[i];
  }
  if (sumd == sumi) {
    cout << -1 << "\n";
  } else {
    for (int i = 0; i < 2 * n; i++) {
      cout << a[i] << " ";
    }
  }
  return 0;
}
