#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (k < n + 1 || n == 4) {
    cout << -1 << endl;
    return 0;
  }
  cout << a << " " << c << " ";
  for (int x = 1; x <= n; x++) {
    if (x != a && x != b && x != c && x != d) {
      cout << x << " ";
    }
  }
  cout << d << " " << b << endl;
  cout << c << " " << a << " ";
  for (int x = 1; x <= n; x++) {
    if (x != a && x != b && x != c && x != d) {
      cout << x << " ";
    }
  }
  cout << b << " " << d;
  cout << endl;
  return 0;
}
