#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << "[" << *it << " = " << a << "] ";
  err(++it, args...);
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n, edges;
  cin >> n >> edges;
  long long int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (edges == n - 1 || edges == n || (a == c && b == d) ||
      (a == d && b == c) || n < 5) {
    if ((a == c && b == d) || (a == d && b == c)) {
      cout << a << " ";
      for (long long int i = 1; i <= n; i++) {
        if (i != a && i != b) {
          cout << i << " ";
        }
      }
      cout << b << '\n' << c << " ";
      for (long long int i = 1; i <= n; i++) {
        if (i != c && i != d) {
          cout << i << ' ';
        }
      }
      cout << d << '\n';
    } else {
      cout << -1 << '\n';
    }
  } else {
    cout << a << " " << c << " ";
    for (long long int i = 1; i <= n; i++) {
      if (i != a && i != b && i != c && i != d) {
        cout << i << " ";
      }
    }
    cout << d << " " << b << '\n';
    cout << c << " " << a << " ";
    for (long long int i = 1; i <= n; i++) {
      if (i != a && i != b && i != c && i != d) {
        cout << i << " ";
      }
    }
    cout << b << " " << d << '\n';
  }
  return 0;
}
