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