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