#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:167772160")
using namespace std;
const int INF = 1e9 + 10;
const long long LINF = (long long)2e18 + 10;
const long double PI = acos(-1);
const long double eps = 1e-8;
const long double EPS = 1e-12;
int n, k;
int a, b, c, d;
void solve() {
  scanf("%d%d", &n, &k);
  scanf("%d%d%d%d", &a, &b, &c, &d);
  if (k == n - 1 || k == n || n == 4) {
    printf("-1");
    return;
  }
  printf("%d %d ", a, c);
  for (int i = 1; i <= n; ++i)
    if (i != a && i != b && i != c && i != d) printf("%d ", i);
  printf("%d %d\n", d, b);
  printf("%d %d ", c, a);
  for (int i = 1; i <= n; ++i)
    if (i != a && i != b && i != c && i != d) printf("%d ", i);
  printf("%d %d\n", b, d);
}
int main() {
  solve();
  return 0;
}
