#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  long long n, A[100000];
  cin >> n;
  for (int i = 0; i < 2 * n; i++) cin >> A[i];
  sort(A, A + 2 * n);
  long long sumA = 0, sumB = 0;
  for (int i = 0; i < n; i++) {
    sumA += A[i];
    sumB += A[n + i];
  }
  if (sumA == sumB)
    cout << -1;
  else
    for (int i = 0; i < 2 * n; i++) cout << A[i] << " ";
  return 0;
}
