#include <bits/stdc++.h>
using namespace std;
int n, k, a, b, c, d, u[1005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> k;
  cin >> a >> b >> c >> d;
  u[a] = u[b] = u[c] = u[d] = 1;
  if (k == n - 1) {
    cout << -1 << endl;
    return 0;
  }
  if (n == 4) {
    cout << -1 << endl;
    return 0;
  }
  if (n == k) {
    cout << -1 << endl;
    return 0;
  }
  cout << a << " " << c << " ";
  for (int i = 1; i <= n; i++)
    if (!u[i]) {
      cout << i << " ";
    }
  cout << d << " " << b << endl;
  cout << c << " " << a << " ";
  for (int i = 1; i <= n; i++)
    if (!u[i]) {
      cout << i << " ";
    }
  cout << b << " " << d << endl;
  return 0;
}
