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