#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  if (n == k) {
    printf("-1\n");
    return 0;
  }
  int cnt;
  int h = 0;
  int i = 1;
  int j = 2;
  cnt = n - k - 1;
  while (0 < cnt) {
    printf("%d ", j++);
    h++;
    cnt--;
  }
  if (h < n) printf("1 ");
  while (h < n - 1) {
    printf("%d ", j++);
    h++;
  }
  printf("\n");
}
