#include <bits/stdc++.h>
using namespace std;
double PI = 3.14159265358979323846;
int rx[8] = {1, 1, 1, -1, -1, -1, 0, 0};
int ry[8] = {0, -1, 1, 0, -1, 1, 1, -1};
int months[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int n, k, a, b, c, d, h;
bool u[1111];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> k >> a >> b >> c >> d;
  if (k <= n || n == 4)
    cout << -1;
  else {
    u[a] = 1, u[b] = 1, u[c] = 1, u[d] = 1;
    for (int i = 1; i <= n; i++) {
      if (!u[i]) {
        h = i;
        u[i] = 1;
        break;
      }
    }
    cout << a << " " << c << " " << h << " " << d << " ";
    for (int i = 1; i <= n; i++) {
      if (!u[i]) cout << i << " ";
    }
    cout << b << endl;
    cout << c << " " << a << " " << h << " " << b << " ";
    for (int i = n; i >= 1; i--) {
      if (!u[i]) cout << i << " ";
    }
    cout << d;
  }
  return 0;
}
