const int INF = 1000000000; const double eps = 1e-8; const int maxn = 300000; int ans[maxn]; int main() { //freopen("in.txt","r",stdin); int n,k; while(cin>>n>>k) { if(k > n - 1) { cout<<-1<<endl; continue; } repf(i,1,n) ans[i] = i; int Max = n - 1; int temp = Max - k; int t = temp/2; int e; for(int i = n;i>=2;i-=2) { if(t) { swap(ans[i],ans[i-1]); t--; }else { e = i; } } if(temp%2) { swap(ans[1],ans[e]); } printf("%d",ans[1]); repf(i,2,n) printf(" %d",ans[i]); cout<<endl; } return 0; }