#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%I32d", &n);
  int a[n * 2];
  for (int i = 0; i < 2 * n; i++) scanf("%I32d", &a[i]);
  sort(a, a + 2 * n);
  int cmp = 0, cnt = 0;
  for (int i = 0; i < n; i++) cmp += a[i];
  for (int i = n; i < 2 * n; i++) cnt += a[i];
  if (cmp == cnt)
    puts("-1");
  else {
    printf("%I32d", a[0]);
    for (int i = 1; i < 2 * n; i++) printf(" %I32d", a[i]);
    printf("\n");
  }
}
