#include <bits/stdc++.h>
using namespace std;
const int mxn = 2e5 + 1;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    int n, k, a, b, c, d, i;
    cin >> n >> k >> a >> b >> c >> d;
    if (k < n + 1 or n == 4) {
      cout << -1;
      return 0;
    }
    vector<int> loser;
    loser.push_back(a);
    for (i = 1; i < n + 1; i++) {
      if (i != a and i != b and i != c and i != d) loser.push_back(i);
    }
    loser.push_back(b);
    cout << a << " " << c << " ";
    for (i = 1; i < loser.size() - 1; i++) cout << loser[i] << " ";
    cout << d << " " << b;
    cout << "\n";
    cout << c << " ";
    for (i = 0; i < loser.size(); i++) cout << loser[i] << " ";
    cout << d << " ";
  }
  return 0;
}
