#include <bits/stdc++.h>
using namespace std;
int dx[] = {-1, 1, 0, 0, 0, 0, 0, 0};
int dy[] = {0, 0, 1, -1, 0, 0, 0, 0};
const long long inf = 1000000007;
const double eps = 0.000000009;
long long mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k, a, b, c, d;
  cin >> n >> k >> a >> b >> c >> d;
  if (n < 5) {
    cout << -1 << endl;
    return 0;
  }
  if (k < n + 1) {
    cout << -1 << endl;
    return 0;
  }
  cout << a << " " << c << " ";
  for (int i = 1; i <= n; i++) {
    if (i == a || i == b || i == c || i == d) continue;
    cout << i << " ";
  }
  cout << d << " " << b << endl;
  cout << c << " " << a << " ";
  for (int i = 1; i <= n; i++) {
    if (i == a || i == b || i == c || i == d) continue;
    cout << i << " ";
  }
  cout << b << " " << d << endl;
  return 0;
}
