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