#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ldb = long double;
using pa = pair<ll, ll>;
using vec = vector<ll>;
const int MOD = 1e9 + 7, INF = INT_MAX, N = 1e5 + 10;
const double PI = acos(-1);
const ll LINF = LLONG_MAX;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ll a;
  cin >> a;
  vector<ll> q(2 * a);
  for (ll i = 0; i < 2 * a; i++) {
    cin >> q[i];
  }
  sort(q.begin(), q.end());
  ll s = 0;
  for (ll i = 0; i < a; i++) s += q[i];
  for (ll i = a; i < 2 * a; i++) s -= q[i];
  if (s == 0)
    cout << -1 << "\n";
  else {
    for (auto el : q) {
      cout << el << " ";
    }
  }
  return 0;
}
