#include <bits/stdc++.h>
using namespace std;
const long long md = 1000000007;
int main() {
  long long n, s, a, t1, t2;
  cin >> n;
  s = n * 2;
  vector<long long> v(s);
  for (int i = 0; i < s; i++) {
    cin >> a;
    v[i] = a;
  }
  sort(v.begin(), v.end(), greater<long long>());
  t1 = 0;
  t2 = 0;
  for (int i = 0; i < n; i++) {
    t1 += v[i];
  }
  for (int i = v.size() - 1; i >= n; i--) {
    t2 += v[i];
  }
  if (t1 == t2) {
    cout << -1 << "\n";
  } else {
    for (int i = 0; i < v.size(); i++) {
      cout << v[i] << " ";
    }
    cout << "\n";
  }
}
