#include <bits/stdc++.h>
using namespace std;
int n, k, a, b, c, d;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n >> k;
  cin >> a >> b >> c >> d;
  if (n <= 4) {
    cout << -1;
    return 0;
  }
  if (k < n + 1) {
    cout << -1;
    return 0;
  }
  cout << a << " " << c << " ";
  for (int i = 1; i <= n; i++) {
    if (i == a || i == b || i == c || i == d) continue;
    cout << i << " ";
  }
  cout << d << " " << b << "\n";
  cout << c << " " << a << " ";
  for (int i = 1; i <= n; i++) {
    if (i == a || i == b || i == c || i == d) continue;
    cout << i << " ";
  }
  cout << b << " " << d << "\n";
}
