#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; for(int i=1;i<=K;i++){ for(int j=0;j