#include <bits/stdc++.h>
using namespace std;
void solve() {
  int i, j, n, m;
  cin >> n;
  vector<int> a(2 * n);
  for (int i = 0; i < 2 * n; i++) cin >> a[i];
  sort(a.begin(), a.end());
  i = 0, j = 2 * n - 1;
  long long l = 0, r = 0;
  while (i < j) {
    l += a[i];
    r += a[j];
    i++;
    j--;
  }
  if (l == r)
    cout << -1 << "\n";
  else {
    for (int i = 0; i < a.size(); i++) cout << a[i] << " ";
    cout << "\n";
  }
}
int main(void) {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
