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