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