#include <bits/stdc++.h>
using namespace std;
long double pi = acos(-1);
long long QPow(long long a, long long b) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans *= a;
    a = a * a;
    b >>= 1;
  }
  return ans;
}
int arr[1002];
int ans[1002];
signed main() {
  ifstream in("Text.txt");
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long n, m;
  long long k;
  int a, b, c, d;
  int t;
  cin >> n >> m;
  cin >> a >> b >> c >> d;
  if (n + 1 > m || n < 5) {
    cout << -1 << endl;
  } else {
    int cnt = 0;
    for (int i = 1; i <= n; i++)
      if (i != a && i != b && i != c && i != d) ans[cnt++] = i;
    cout << a << " " << c << " ";
    for (int i = 0; i < cnt; i++) cout << ans[i] << " ";
    cout << d << " " << b << endl;
    cout << c << " " << a << " ";
    for (int i = cnt - 1; i >= 0; i--) cout << ans[i] << " ";
    cout << b << " " << d << endl;
  }
  return 0;
}
