#include <bits/stdc++.h>
int main() {
  int x[1001], y[1001];
  int n, m, i, j;
  int k, a, b, c, d;
  scanf("%d %d", &n, &k);
  scanf("%d %d %d %d", &a, &b, &c, &d);
  if (n == 4)
    printf("-1");
  else {
    if (k < n + 1)
      printf("-1");
    else {
      int t = 2;
      for (i = 1; i <= n; i++)
        if (i != a && i != b && i != c && i != d) x[t++] = i;
      x[0] = a;
      x[1] = c;
      x[n - 2] = d;
      x[n - 1] = b;
      for (i = 0; i < n; i++) printf("%d ", x[i]);
      printf("\n");
      x[0] = c;
      x[1] = a;
      x[n - 2] = b;
      x[n - 1] = d;
      for (i = 0; i < n; i++) printf("%d ", x[i]);
    }
  }
  return 0;
}
