#include #define rep(i,n) for(int i=0;i> N >> K; ll sum=N*(N+1)/2; if(sum%K==0&&N%(2*K)==0){ cout << "Yes" << endl; int num = N/(2*K); rep(i,K){ for(int j=1;j<=num;j++){ cout << i*num+j << " " << N+1-(i*num)-j << " "; } cout << endl; } } else{ cout << "No" << endl; } }