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