#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(2 * n);
  int i;
  for (i = 0; i < 2 * n; i++) {
    cin >> v[i];
  }
  sort(v.begin(), v.end());
  int sum1 = 0;
  int sum2 = 0;
  sum1 = accumulate(v.begin(), v.begin() + n, 0);
  sum2 = accumulate(v.begin() + n, v.end(), 0);
  if (sum1 == sum2) {
    cout << -1 << endl;
  } else {
    for (auto it = v.begin(); it != v.end(); it++) {
      cout << *it << " " << endl;
    }
  }
  return 0;
}
