#include <bits/stdc++.h>
using namespace std;
int n, k, a, b, c, d;
int main() {
  ios::sync_with_stdio(0);
  cin >> n >> k >> a >> b >> c >> d;
  if ((a == c && b == d) || (a == d && b == c)) {
    cout << a << ' ';
    for (int i = 1; i <= n; i++) {
      if (i != a && i != b) cout << i << ' ';
    }
    cout << b << '\n';
    cout << c << ' ';
    for (int i = 1; i <= n; i++) {
      if (i != a && i != b) cout << i << ' ';
    }
    cout << d;
  } else if ((a == c) || (a == d) || (b == c) || (b == d)) {
    if (k < n) {
      cout << -1;
    } else {
      if (a == c) {
        cout << a << ' ';
        for (int i = 1; i <= n; i++)
          if (i != a && i != b && i != c && i != d) cout << i << ' ';
        cout << d << ' ' << b << '\n';
        cout << a << ' ';
        for (int i = 1; i <= n; i++)
          if (i != a && i != b && i != c && i != d) cout << i << ' ';
        cout << b << ' ' << d;
      } else if (b == d) {
        cout << a << ' ' << c << ' ';
        for (int i = 1; i <= n; i++)
          if (i != a && i != b && i != c && i != d) cout << i << ' ';
        cout << b << '\n';
        cout << c << ' ' << a << ' ';
        for (int i = 1; i <= n; i++)
          if (i != a && i != b && i != c && i != d) cout << i << ' ';
        cout << b;
      } else if (a == d) {
        cout << a << ' ';
        for (int i = 1; i <= n; i++)
          if (i != a && i != b && i != c && i != d) cout << i << ' ';
        cout << c << ' ' << b << '\n';
        cout << c << ' ' << b << ' ';
        for (int i = n; i >= 1; i--)
          if (i != a && i != b && i != c && i != d) cout << i << ' ';
        cout << a;
      } else {
        cout << a << ' ' << d << ' ';
        for (int i = 1; i <= n; i++)
          if (i != a && i != b && i != c && i != d) cout << i << ' ';
        cout << b << '\n';
        cout << c << ' ';
        for (int i = n; i >= 1; i--)
          if (i != a && i != b && i != c && i != d) cout << i << ' ';
        cout << a << ' ' << d;
      }
    }
  } else if (k < n + 1 || n == 4) {
    cout << -1;
  } else {
    cout << a << ' ' << c << ' ';
    for (int i = 1; i <= n; i++)
      if (i != a && i != b && i != c && i != d) cout << i << ' ';
    cout << d << ' ' << b << '\n';
    cout << c << ' ' << a << ' ';
    for (int i = 1; i <= n; i++)
      if (i != a && i != b && i != c && i != d) cout << i << ' ';
    cout << b << ' ' << d;
  }
}
