#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  vector<int> v(2 * n);
  for (int i = 0; i < 2 * n; ++i) scanf("%d", &v[i]);
  int sum1, sum2;
  sum1 = sum2 = 0;
  sort(v.begin(), v.end());
  for (int i = 0; i < n; ++i) sum1 += v[i];
  for (int i = n; i < 2 * n; ++i) sum2 += v[i];
  if (sum1 == sum2)
    puts("-1");
  else
    for (int i = 0; i < 2 * n; ++i) printf("%d ", v[i]);
  return 0;
}
