#include <bits/stdc++.h>
using namespace std;
vector<int> vi;
const int mod = int(1e9) + 7, INF = 0x3fffffff;
const int maxn = 1e5 + 13;
int main(void) {
  int n, k;
  scanf("%d", &(n)), scanf("%d", &(k));
  int a, b, c, d;
  scanf("%d", &(a)), scanf("%d", &(b)), scanf("%d", &(c)), scanf("%d", &(d));
  bool ok = false;
  if (n == 4) {
    cout << -1 << endl;
  } else {
    if (k >= n + 1)
      ok = true;
    else
      cout << -1 << endl;
  }
  if (ok) {
    cout << a << " " << c << " ";
    for (int i = 1; i <= n; i++) {
      if (i != a && i != c && i != d && i != b) cout << i << " ";
    }
    cout << d << " " << b << endl;
    cout << c << " " << a << " ";
    for (int i = 1; i <= n; i++) {
      if (i != a && i != c && i != d && i != b) cout << i << " ";
    }
    cout << b << " " << d << endl;
  }
  return 0;
}
