#include <bits/stdc++.h>
using namespace std;
int n, m, a, b, c, d;
bool ok;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> m;
  cin >> a >> b >> c >> d;
  if (n == 4 || n + 1 > m) {
    cout << -1;
    return 0;
  }
  cout << a << " " << c << " ";
  for (int i = 1; i <= n; i++)
    if (i != a && i != b && i != c && i != d) {
      cout << i << " ";
    }
  cout << d << " " << b << "\n";
  cout << c << " " << a << " ";
  ok = false;
  for (int i = 1; i <= n; i++)
    if (i != a && i != b && i != c && i != d) {
      cout << i << " ";
    }
  cout << b << " " << d;
}
