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