func_code_string: #include <bits/stdc++.h>   using namespace std;   int a[654321];   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     int n, k;     cin >> n >> k;     int a, b, c, d;     cin >> a >> b >> c >> d;     map<int, int> mapka;     mapka[1] = a;     mapka[2] = c;     mapka[n - 1] = d;     mapka[n] = b;     set<int> st;     for (int i = 1; i <= n; ++i) st.insert(i);     st.erase(a);     st.erase(b);     st.erase(c);     st.erase(d);     if (n == 4 || k <= n) {       cout << -1;       return 0;     }     int cc = 3;     for (set<int>::iterator it = st.begin(); it != st.end(); ++it)       mapka[cc++] = *it;     for (int i = 1; i <= n; ++i) cout << mapka[i] <<    ;     cout << endl;     cout << mapka[2] <<     << mapka[1] <<    ;     for (int i = 3; i <= n - 2; ++i) cout << mapka[i] <<    ;     cout << mapka[n] <<     << mapka[n - 1] << endl;     return 0;   }   