#include <bits/stdc++.h>
using namespace std;
const int N = 5100;
int n, k, a, b, c, d;
vector<int> e;
int main() {
  scanf("%d%d%d%d%d%d", &n, &k, &a, &b, &c, &d);
  if (k <= n || n == 4) return printf("-1\n"), 0;
  for (int i = 1; i <= n; i++)
    if (i != a && i != b && i != c && i != d) e.push_back(i);
  printf("%d %d ", a, c);
  for (vector<int>::iterator it = e.begin(); it != e.end(); it++)
    printf("%d ", *it);
  printf("%d %d\n", d, b);
  printf("%d %d ", c, a);
  for (vector<int>::iterator it = e.begin(); it != e.end(); it++)
    printf("%d ", *it);
  printf("%d %d\n", b, d);
  return 0;
}
