#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (k < n + 1 || n == 4) {
    cout << -1;
    return 0;
  }
  int cur = 1;
  vector<int> v;
  while (cur == a || cur == b || cur == c || cur == d) cur++;
  cout << a << ' ' << c << ' ' << cur << ' ' << d << ' ';
  cur++;
  for (; cur <= n; cur++) {
    while (cur == a || cur == b || cur == c || cur == d) cur++;
    if (cur > n) break;
    cout << cur << ' ';
    v.push_back(cur);
  }
  cout << b << '\n';
  cur = 1;
  while (cur == a || cur == b || cur == c || cur == d) cur++;
  cout << c << ' ' << a << ' ' << cur << ' ' << b << ' ';
  for (int i = v.size() - 1; i >= 0; i--) {
    cout << v[i] << ' ';
  }
  cout << d << '\n';
}
