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