#include <bits/stdc++.h>
using namespace std;
vector<int> arr;
int main() {
  int n, k;
  int a, b, c, d;
  cin >> n >> k;
  cin >> a >> b >> c >> d;
  if (k < n + 1 || n == 4) {
    cout << -1;
    return 0;
  }
  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", b, d);
  return 0;
}
