#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int arr[2 * n];
  for (int i = 0; i < 2 * n; i++) cin >> arr[i];
  sort(arr, arr + (2 * n));
  long long int sum1 = 0;
  long long int sum2 = 0;
  for (int i = 0; i < n; i++) sum1 += arr[i];
  for (int i = n; i < 2 * n; i++) sum2 += arr[i];
  if (sum1 == sum2)
    cout << -1 << endl;
  else {
    for (int i = 0; i < 2 * n; i++) cout << arr[i] << " ";
    cout << endl;
  }
  return 0;
}
