#include using namespace std; using i64 = long long; using u64 = unsigned long long; using u32 = unsigned; void solve() { int n, k; cin >> n >> k; if (n % k) { cout << -1 << endl; } else { int num = n / k; for (int i = 0; i < num; i++) { cout << 1 << ' '; } int cnt = 2; for (int i = 0; i < n - num; i++) { cout << cnt++ << ' '; } cout << endl; } } signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); solve(); return 0; }