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