#include <bits/stdc++.h>
using namespace std;
int n, k, a, b, c, d, ans[1111];
int main() {
  while (~scanf("%d%d", &n, &k)) {
    scanf("%d%d%d%d", &a, &b, &c, &d);
    if (n < 5 || k < n + 1)
      printf("-1\n");
    else {
      ans[1] = a, ans[2] = c, ans[n - 1] = d, ans[n] = b;
      for (int i = 3, j = 1; i <= n - 2; i++) {
        while (j == a || j == b || j == c || j == d) j++;
        ans[i] = j++;
      }
      for (int i = 1; i <= n; i++) printf("%d%c", ans[i], i == n ? '\n' : ' ');
      printf("%d %d %d ", ans[2], ans[1], ans[3]);
      for (int i = 4; i <= n - 2; i++) printf("%d ", ans[i]);
      printf("%d %d\n", ans[n], ans[n - 1]);
    }
  }
  return 0;
}
