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