intmain(){ int n, k; vector<int> v; set<int> s; cin >> n >> k; if (n < 6 && k == n / 2) { cout << "-1"; return0; } for (int i = 2; i <= n; i += 2) if (i != 6) v.push_back(i); v.push_back(6); v.push_back(3); for (int i = 0; i <= k; i++) cout << v[i] << " ", s.insert(v[i]); for (int i = 1; i <= n; i++) if (!s.count(i)) cout << i << " "; return0; }