#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
long long vis[212345] = {0};
vector<vector<int> > v(212345);
long long d[212345] = {0};
long long pow(long long a, long long b, long long m) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans = (ans * a) % m;
    b /= 2;
    a = (a * a) % m;
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  if (n == 4 || k < n + 1)
    cout << "-1\n";
  else {
    cout << a << " " << c << " ";
    long long f = 0;
    long long l = -1;
    for (int i = 1; i < n + 1; i++) {
      if (i == a || i == b || i == c || i == d) continue;
      if (f == 0) f = i;
      l = i;
      cout << i << " ";
    }
    cout << d << " " << b << "\n";
    cout << c << " " << a << " ";
    for (int i = 1; i < n + 1; i++) {
      if (i == a || i == b || i == c || i == d) continue;
      if (f == 0) f = i;
      l = i;
      cout << i << " ";
    }
    cout << b << " " << d << "\n";
  }
}
