#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
const int N = 1e5 + 10, INF = 0x3f3f3f3f, MOD = 1e9 + 7;
int n, k;
int main() {
  ios_base::sync_with_stdio(0);
  clock_t _ = clock();
  while (scanf("%d%d", &n, &k) == 2) {
    int a[5];
    for (int i = 1; i <= 4; ++i) scanf("%d", a + i);
    if (n == 4 || n - 4 - 1 + 6 > k) {
      puts("-1");
      continue;
    }
    printf("%d %d ", a[1], a[3]);
    for (int i = 1; i <= n; ++i) {
      bool ok = true;
      for (int j = 1; j <= 4; ++j)
        if (i == a[j]) ok = false;
      if (!ok) continue;
      printf("%d ", i);
    }
    printf("%d %d\n", a[4], a[2]);
    printf("%d %d ", a[3], a[1]);
    for (int i = 1; i <= n; ++i) {
      bool ok = true;
      for (int j = 1; j <= 4; ++j)
        if (i == a[j]) ok = false;
      if (!ok) continue;
      printf("%d ", i);
    }
    printf("%d %d\n", a[2], a[4]);
  }
  return 0;
}
