#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, a, b, c, d;
  cin >> n >> k;
  cin >> a >> b >> c >> d;
  if (n == 4 || k < n + 1)
    cout << -1 << endl;
  else {
    cout << a << " " << c << " ";
    for (int i = (1); i < (n + 1); i++) {
      if (i == a || i == b || i == c || i == d)
        continue;
      else
        cout << i << " ";
    }
    cout << d << " " << b << endl;
    cout << c << " " << a << " ";
    for (int i = (1); i < (n + 1); i++) {
      if (i == a || i == b || i == c || i == d)
        continue;
      else
        cout << i << " ";
    }
    cout << b << " " << d << endl;
  }
  return 0;
}
