#include <bits/stdc++.h>
using namespace std;
bool rd[1005];
vector<int> v, vv;
int main() {
  int n, k, a, b, c, d, aa, bb, cc, dd;
  cin >> n >> k;
  cin >> a >> b >> c >> d;
  rd[a] = true;
  rd[b] = true;
  rd[c] = true;
  rd[d] = true;
  aa = a, bb = b, cc = c, dd = d;
  int cnt = 0;
  if (aa > bb) swap(aa, bb);
  if (cc > dd) swap(cc, dd);
  if (aa == cc or aa == dd) cnt++;
  if (bb == cc or bb == dd) cnt++;
  if (n <= 4) {
    cout << -1 << endl;
    return 0;
  }
  if (cnt == 0 and k < n - 1 + 2) {
    cout << -1 << endl;
    return 0;
  }
  if (cnt == 1 and k < n) {
    cout << -1 << endl;
    return 0;
  }
  if (!cnt) {
    cout << a << ' ' << c;
    for (int i = 1; i <= n; i++)
      if (!rd[i]) cout << ' ' << i;
    cout << ' ' << d << ' ' << b << endl;
    cout << c << ' ' << a;
    for (int i = 1; i <= n; i++)
      if (!rd[i]) cout << ' ' << i;
    cout << ' ' << b << ' ' << d << endl;
    return 0;
  }
  if (cnt == 1) {
    cout << a;
    if (a == c) {
      for (int i = 1; i <= n; i++)
        if (!rd[i]) cout << ' ' << i;
      cout << ' ' << d << ' ' << b << endl;
      cout << a << endl;
      for (int i = 1; i <= n; i++)
        if (!rd[i]) cout << ' ' << i;
      cout << ' ' << b << ' ' << d << endl;
    } else if (a == d) {
      for (int i = 1; i <= n; i++)
        if (!rd[i]) cout << ' ' << i;
      cout << ' ' << c << ' ' << b << endl;
      cout << c << ' ' << b;
      for (int i = n; i > 0; i--)
        if (!rd[i]) cout << ' ' << i;
      cout << ' ' << d << endl;
    } else if (b == d) {
      cout << ' ' << c;
      for (int i = 1; i <= n; i++)
        if (!rd[i]) cout << ' ' << i;
      cout << ' ' << b << endl;
      cout << c << ' ' << a;
      for (int i = 1; i <= n; i++)
        if (!rd[i]) cout << ' ' << i;
      cout << ' ' << b << endl;
    } else {
      cout << ' ' << d;
      for (int i = 1; i <= n; i++)
        if (!rd[i]) cout << ' ' << i;
      cout << ' ' << b << endl;
      cout << c;
      for (int i = n; i > 0; i--)
        if (!rd[i]) cout << ' ' << i;
      cout << ' ' << a << ' ' << d;
    }
  } else {
    cout << a;
    for (int i = 1; i <= n; i++)
      if (!rd[i]) cout << ' ' << i;
    cout << ' ' << b << endl;
    ;
    cout << a;
    for (int i = 1; i <= n; i++)
      if (!rd[i]) cout << ' ' << i;
    cout << ' ' << b;
  }
  return 0;
}
