Problem: This is an interactive problem.

In the Wonderful Metropolis of the Future, there is no need in subway train drivers. Due to the technological progress, they were replaced by the Artificial Intelligence (AI). Unfortunately, one day the predictions of sci-fi writers came true: the AI rebelled and now there is an uncontrollable train in the subway. It can be dangerous! Your task is to find the train and stop the AI.

The subway of the Metropolis is one line (regular straight line with no self-intersections) with n stations, indexed consecutively from 1 to n. At each moment the train is at some station. You need to determine the index of this station, so that the train would be secured.

To find the train, dispatcher Sarah gave you a gadget that allows you to select arbitrary numbers l and r (l ≤ r), and then check, whether the train is located on a station with index between l and r, inclusive. Unfortunately, recharging of the gadget takes some time (and every time you use it as soon as possible), so between two applications of the gadget the train can move to any station that is at most k stations away. Formally, if the train was at the station x when the gadget was applied, then at the next application of the gadget the train can appear at any station y such that max(1, x - k) ≤ y ≤ min(n, x + k).

Note that AI is not aware that you are trying to catch the train, so it makes all moves according to its predefined plan.

After an examination of the gadget you found that it is very old and can hold no more than 4500 applications, after which it will break and your mission will be considered a failure.

Can you find the station with the train using no more than 4500 applications of the gadgets?

Input

The first line contains two integers n and k (1 ≤ n ≤ 10^{18}, 0 ≤ k ≤ 10) — the number of stations and the maximum number of stations the train can move between two applications of the gadget.

Interaction

You can apply the gadget at most 4500 times. In order to apply the gadget you need to print two space-separated integers l and r (1 ≤ l ≤ r ≤ n). You will then receive either string "Yes", if the train is between stations l and r, inclusive, or string "No" otherwise. If l = r and you received "Yes", then you found the train successfully, and your program must halt immediately.

Answer "Bad" instead of "Yes" or "No" means that you made an invalid query or made too many queries. Exit immediately after receiving "Bad" and you will see Wrong answer verdict. Otherwise you can get an arbitrary verdict because your solution will continue to read from a closed stream.

After printing a query do not forget to output end of line and flush the output. Otherwise you will get Idleness limit exceeded. To do this, use:

  * fflush(stdout) or cout.flush() in C++; 
  * System.out.flush() in Java; 
  * flush(output) in Pascal; 
  * stdout.flush() in Python; 
  * see documentation for other languages. 



Hacks

In order to hack, you should present a test in the following format.

The first line should contain three integers n, k and p (1 ≤ n ≤ 10^{18}, 0 ≤ k ≤ 10, 1 ≤ p ≤ n) — the number of stations, the maximum number of stations the train can move between two applications of the gadget and the initial position of the train, respectively.

Each of the next 4500 lines should contain a single integer x (1 ≤ x ≤ n) — the positions of the train after each query. Two consecutive positions (including the initial one) should not differ by more than k.

For example, the following lines are the first lines of the sample test.
    
    
      
    10 2 5  
    5  
    3  
    5  
    7  
    7  
    ...  
    

Example

Input

10 2

Yes

No

Yes

Yes


Output

3 5

3 3

3 4

5 5

Note

In the first sample, the train was initially at the station 5, after the first application of the gadget it did not move, after the second application it moved to the station 3, and after the third application moved again to the station 5.

Solution (in JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.*;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.InputStream;

public class Main {
	
    public static void main(String[] args) throws FileNotFoundException {
//    	File file1 = new File("C:/Users/hasee/Desktop/std.in");
//    	File file3 = new File("C:/Users/hasee/Desktop/std.out");
//    	File file2 = new File("C:/Users/hasee/Desktop/2.txt");
//    	InputStream inputStream = new FileInputStream(file1);
//    	InputStream inputStream1 = new FileInputStream(file3);
//    	OutputStream outputStream = new FileOutputStream(file2);
    	InputStream inputStream = System.in;
    	OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }
    
    static class TaskA {
    	
        public void solve(int testNumber, InputReader in, PrintWriter out) {    
        	
        	
        	long a = in.nextLong();
        	long b = in.nextLong();
        	
        	long l = 1;
        	long r = a/2+1;
        	long sum = a/2;
        	long L = 1;
        	long R = a;
        	String s = "Yes";
        	while(true){
        		
        		if((R-L) <= 45){
        			//System.out.println(1);
        			long k = (int)(Math.random()*(R-L+1));
        			System.out.println((L+k)+" "+(L+k));
        			System.out.flush();
        			s = in.next();
        			if(s.equals("Yes"))break;
        			else{
        				L = Math.max(1, l-b);
        				R = Math.min(a, R+b);
        				l = L;
        				r = (R+L)/2+1;
        				sum = (R-L+1)/2+1;
        			}
        		}
        		else{
        			//System.out.println(2);
        			double k = Math.random()*10;
            		if(k<5){
            			long rr = Math.min(a, sum+l);
            			System.out.println(l+" "+rr);
            			System.out.flush();
            			s = in.next();
                		if(s.equals("Yes")){
                			L = Math.max(1, l-b);
                			R = Math.min(a, rr+b);
                			sum = (R-L+1)/2+1;
                			l = L;
                			r = (l+R)/2+1;
                		}
                		else{
                			long rrr = Math.min(a, sum+r);
                			L = Math.max(1, r-b);
                			R = Math.min(a, rrr+b);
                			sum = (R-L+1)/2+1;
                			l = L;
                			r = (l+R)/2+1;
                		}
            		}
            		else{
            			long rr = Math.min(a, sum+r);
            			System.out.println(r+" "+rr);
            			System.out.flush();
            			s = in.next();
            			if(s.equals("Yes")){
            				L = Math.max(1, r-b);
                			R = Math.min(a, rr+b);
                			sum = (R-L+1)/2+1;
                			l = L;
                			r = (l+R)/2+1;
                		}
            			else{
            				long rrr = Math.min(a, sum+l);
            				L = Math.max(1, l-b);
                			R = Math.min(a, rrr+b);
                			sum = (R-L+1)/2+1;
                			l = L;
                			r = (l+R)/2+1;
            			}
            		}       
        		}

        		//System.out.println(L+" "+R+" "+(R-L));
        		
        		
        	}
        	
        	
        	
        }
        
    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }
        
        public double nextDouble() {
        	return Double.parseDouble(next());
        }
        
        public long nextLong() {
            return Long.parseLong(next());
        }
        
    }
}

class Node{
	int l,r,t;
}