#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, tmp, sum = 0, sum2 = 0;
  cin >> n;
  int arr[2 * n];
  for (int i = 0; i < 2 * n; i++) cin >> arr[i];
  sort(arr, arr + 2 * n);
  for (int i = 0; i < n; i++) sum += arr[i];
  for (int i = n; i < 2 * n; i++) sum2 += arr[i];
  if (sum == sum2) return cout << "-1\n", 0;
  for (int i = 0; i < 2 * n; i++) cout << arr[i] << " ";
  return 0;
}
