#include using namespace std; int main(){ int q, k; cin >> q >> k; if(q < 3 || k < 3 || k > q){ assert(q >= 3 && k >= 3); cout << "No" << endl; return 0; } if(k == 4 || k == 3){ if(q == 5 && k == 4){ cout << "Yes" << endl; cout << "1 2" << endl; cout << "1 3" << endl; cout << "2 4" << endl; cout << "1 3" << endl; cout << "4 6" << endl; return 0; } if(q != k){ cout << "No" << endl; return 0; } } cout << "Yes" << endl; cout << "1 2" << endl; cout << "1 3" << endl; cout << "2 4" << endl; // 0:2 1:3 for(int i=0; i