#include <bits/stdc++.h>
using namespace std;
long long n, k, cs, cd, mij;
string s;
int main() {
  std::srand(std::time(nullptr));
  cin >> n >> k;
  while (1) {
    cs = 1;
    cd = n;
    while (1) {
      cs = max(1LL, cs - 2 * k);
      cd = min(n, cd + 2 * k);
      mij = (cs + cd) / 2LL;
      if (cd - cs <= 100) {
        int numar = rand() % 100;
        cout << min(cs + numar, n) << " " << min(cs + numar, n) << endl;
        cin >> s;
        if (s == "Yes") return 0;
      }
      cout << cs << " " << mij << endl;
      cout << flush;
      cin >> s;
      if (s == "Yes")
        cd = mij;
      else
        cs = mij;
    }
  }
}
