#include <bits/stdc++.h>
using namespace std;
int a[2020];
int main() {
  int n;
  scanf("%d", &n);
  int s = 0, S = 0;
  for (int i = 1; i <= 2 * n; i++) scanf("%d", a + i);
  sort(a + 1, a + 2 * n + 1);
  for (int i = 1; i <= n; i++) s += a[i];
  for (int i = n + 1; i <= 2 * n; i++) S += a[i];
  if (s != S) {
    for (int i = 1; i < 2 * n; i++) printf("%d ", a[i]);
    printf("%d", a[2 * n]);
    return 0;
  }
  printf("-1");
  return 0;
}
