#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  scanf("%d", &n);
  scanf("%d", &m);
  int a, b, c, d;
  scanf("%d %d %d %d", &a, &b, &c, &d);
  if (m < n + 1 || n == 4)
    printf("-1\n");
  else {
    int ter[n - 4];
    int j = 0;
    for (int i = 1; i < n + 1; i++) {
      if (i != a && i != b && i != c && i != d) {
        ter[j] = i;
        j++;
      }
    }
    printf("%d %d ", a, c);
    for (int i = 0; i < n - 4; i++) {
      printf("%d ", ter[i]);
    }
    printf("%d %d\n", d, b);
    printf("%d %d ", c, a);
    for (int i = 0; i < n - 4; i++) {
      printf("%d ", ter[i]);
    }
    printf("%d %d\n", b, d);
  }
}
