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