#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, n;
  cin >> k >> n;
  if (n * 3 > k) {
    cout << "-1";
    return 0;
  }
  cout << n << " ";
  for (int i = 1; i <= n; i++) cout << i << " " << i << " ";
  for (int i = 1; i < n; i++) cout << i << " ";
  for (int i = n * 3; i < k; i++) cout << n << " ";
  return 0;
}
