#include <bits/stdc++.h>
using namespace std;
bool comp(int x, int y) { return x > y; }
int main() {
  int n, k;
  cin >> n >> k;
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  vector<int> ans;
  for (int i = 0; i < n; i++)
    if (i + 1 != a && i + 1 != b && i + 1 != c && i + 1 != d)
      ans.push_back(i + 1);
  if (n <= 4 || k <= n)
    cout << -1 << endl;
  else {
    cout << a << " " << c << " ";
    int len = ans.size();
    for (int i = 0; i < len; i++) cout << ans[i] << " ";
    cout << d << " " << b << endl;
    cout << c << " " << a << " ";
    for (int i = 0; i < len; i++) cout << ans[i] << " ";
    cout << b << " " << d << endl;
  }
  return 0;
}
