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