#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(2 * n);
  for (int i = 0; i < 2 * n; i++) cin >> v[i];
  sort(v.begin(), v.end());
  long long sum = 0, sum1 = 0;
  for (int i = 0; i < n; i++) sum += v[i];
  for (int i = n; i < 2 * n; i++) sum1 += v[i];
  if (sum == sum1)
    cout << -1 << endl;
  else
    for (int i : v) cout << i << " ";
}
