#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> ar(1e5 + 1);
  for (long long i = 1; i <= 2 * n; i++) {
    cin >> ar[i];
  }
  sort(ar.begin() + 1, ar.begin() + 2 * n + 1);
  long long sum = std::accumulate(ar.begin() + 1, ar.begin() + 2 * n + 1, 0);
  long long ns = 0;
  for (long long i = 1; i <= n; i++) {
    ns += ar[i];
  }
  if (ns != sum - ns) {
    for (long long i = 1; i <= 2 * n; i++) cout << ar[i] << " ";
  } else
    cout << -1 << "\n";
  return 0;
}
