N,K=map(int,input().split()) if K==0: print(-1) exit() edge = [(1,N+1)] for i in range(2,N+1): if K