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