#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t = 1;
  while (t--) {
    int n;
    cin >> n;
    n *= 2;
    vector<long long> arr;
    int x;
    for (int i = 0; i < (int)(n); ++i) {
      cin >> x;
      arr.push_back((long long)x);
    }
    sort(arr.begin(), arr.end());
    long long sumb = 0, sume = 0;
    for (int i = 0; i < (int)(n / 2); ++i) {
      sumb += arr[i];
      sume += arr[n - i - 1];
    }
    if (sume != sumb) {
      for (auto it = arr.begin(); it != arr.end(); it++) {
        cout << *it << " ";
      }
    } else {
      cout << "-1";
    }
  }
}
