Problem: This is an interactive problem.

In good old times dwarves tried to develop extrasensory abilities:

  * Exactly n dwarves entered completely dark cave. 
  * Each dwarf received a hat — white or black. While in cave, none of the dwarves was able to see either his own hat or hats of other Dwarves. 
  * Dwarves went out of the cave to the meadow and sat at an arbitrary place one after the other. When a dwarf leaves the cave, he sees the colors of all hats of all dwarves that are seating on the meadow (i.e. left the cave before him). However, he is not able to see the color of his own hat and none of the dwarves can give him this information. 
  * The task for dwarves was to got diverged into two parts — one with dwarves with white hats and one with black hats. 



After many centuries, dwarves finally managed to select the right place on the meadow without error. Will you be able to repeat their success?

You are asked to successively name n different integer points on the plane. After naming each new point you will be given its color — black or white. Your task is to ensure that the named points can be split by a line in such a way that all points of one color lie on the same side from the line and points of different colors lie on different sides. Moreover, no points can belong to the line. Also, you need to report any such line at the end of the process.

In this problem, the interactor is adaptive — the colors of the points in the tests are not fixed beforehand and the jury program can select them arbitrarily, in particular, depending on your program output.

Interaction

The first line of the standard input stream contains an integer n (1 ≤ n ≤ 30) — the number of points your program should name.

Then n times your program must print two integer coordinates x and y (0 ≤ x ≤ 109, 0 ≤ y ≤ 109). All points you print must be distinct.

In response to each coordinate pair your program will receive the string "black", if the point is black, or "white", if the point is white.

When all n points are processed, you need to print four integers x1, y1, x2 and y2 (0 ≤ x1, y1 ≤ 109, 0 ≤ x2, y2 ≤ 109) — coordinates of points (x1, y1) and (x2, y2), which form a line, which separates n points into black and white. Points (x1, y1) and (x2, y2) should not coincide.

Hacks

To hack solution use the following format. The first line must contain word "hack", the second line should contain the number n and the last line should contain the sequence of 0 and 1 — colors of points, which will be reported to the solution. Unlike the jury tests, colors of points in hacks are always fixed in advance. Of course, the hacked solution wouldn't be able to get the information about the colors in advance.

For example, the hack corresponding to sample test will look like this: 
    
    
      
    hack  
    5  
    0 0 1 1 0  
    

Example

Input

5
<span class="tex-span"></span>
black
<span class="tex-span"></span>
black
<span class="tex-span"></span>
white
<span class="tex-span"></span>
white
<span class="tex-span"></span>
black


Output

<span class="tex-span"></span>
0 0
<span class="tex-span"></span>
3 1
<span class="tex-span"></span>
2 3
<span class="tex-span"></span>
4 4
<span class="tex-span"></span>
0 2
<span class="tex-span"></span>
1 3 4 1

Note

In the sample input and output values are aligned only for simplicity of interpreting them chronologically. In real interaction no "extra" line breaks should appear.

The following picture illustrates the first test.

<image>

Solution (in JAVA):

Solution:
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;

public class C {
/*
30
w w w w w
w w w w w
w w w w w
w w w w w
w w w w w
w w w b w
 */
	static int N;
	public static void main(String[] args) {
		JS in = new JS();
		N = in.nextInt();
		int lo = 1;
		int hi = 999999999;
		ArrayList<Vec> l1 = new ArrayList<Vec>();
		ArrayList<Vec> l2 = new ArrayList<Vec>();
		int cnt = 0;
		while(true) {
			int mid = (lo+hi)/2;
			if(mid-1<=lo || mid+1 >= hi || cnt == N) break;
			System.out.println(mid+" "+0);
			System.out.flush();
			boolean wh = in.next().charAt(0)=='w';
			l1.add(new Vec(mid,0,wh));
			cnt++;
			if(!wh)hi=mid-1;
			else lo = mid+1;
		}
		lo = 1;
		hi = 999999999;
		while(true) {
			int mid = (lo+hi)/2;
			if(mid-1<=lo || mid+1 >= hi || cnt == N) break;
			System.out.println(mid+" "+10);
			System.out.flush();
			boolean wh = in.next().charAt(0)=='w';
			l2.add(new Vec(mid,10,wh));
			cnt++;
			if(!wh)hi=mid-1;
			else lo = mid+1;
		}
		Collections.sort(l1); Collections.sort(l2);
		
		
		if(l2.size()==0) {
			boolean fnd = false;
			for(int i = 0; i < l1.size()-1; i++) {
				Vec v1 = l1.get(i);
				Vec v2 = l1.get(i+1);
				if(v1.wh != v2.wh) {
					System.out.println((v1.x+1)+" 0 "+(v1.x+1)+" 10");
					fnd=true;
					break;
				}
			}
			if(!fnd)System.out.println("0 0 0 1");
		}
		else {
			Vec vLo = null;
			Vec vHi = null;
			for(int i = 0; i < l1.size()-1; i++) {
				Vec v1 = l1.get(i);
				Vec v2 = l1.get(i+1);
				if(v1.wh != v2.wh) {
					vLo = v1;
					break;
				}
			}
			for(int i = 0; i < l2.size()-1; i++) {
				Vec v1 = l2.get(i);
				Vec v2 = l2.get(i+1);
				if(v1.wh != v2.wh) {
					vHi=v1;
					break;
				}
			}
			if(vLo==null && vHi==null) {
				if(l1.get(0).wh != l2.get(0).wh) {
					System.out.println("0 5 1 5");
				}
				else {
					System.out.println("0 100 1 100");
				}
			}
			else if(vLo==null) {
				if(l1.get(0).wh) {
					System.out.println("1000000000 0 "+(vHi.x+1)+" "+vHi.y);
				}
				else {
					System.out.println("0 0 "+(vHi.x+1)+" "+vHi.y);
				}
			}
			else if(vHi==null) {
				if(l2.get(0).wh) {
					System.out.println("1000000000 10 "+(vLo.x+1)+" "+vLo.y);
				}
				else {
					System.out.println("0 10 "+(vLo.x+1)+" "+vLo.y);
				}
			}
			else {
				System.out.println((vLo.x+1)+" "+vLo.y+" "+(vHi.x+1)+" "+vHi.y);
			}
		}
	}
	static class Vec implements Comparable<Vec>{
		int x,y;
		boolean wh;
		public Vec(int xx, int yy, boolean bb) {
			x=xx;
			y=yy;
			wh=bb;
		}
		@Override
		public int compareTo(Vec o) {
			return x-o.x;
		}
	}

	static class JS{
		public int BS = 1<<16;
		public char NC = (char)0;
		byte[] buf = new byte[BS];
		int bId = 0, size = 0;
		char c = NC;
		double num = 1;
		BufferedInputStream in;
		
		public JS() {
			in = new BufferedInputStream(System.in, BS);
		}
		
		public JS(String s) throws FileNotFoundException {
			in = new BufferedInputStream(new FileInputStream(new File(s)), BS);
		}
		
		public char nextChar(){
			while(bId==size) {
				try {
					size = in.read(buf);
				}catch(Exception e) {
					return NC;
				}				
				if(size==-1)return NC;
				bId=0;
			}
			return (char)buf[bId++];
		}
		
		public int nextInt() {
			return (int)nextLong();
		}
		
		public long nextLong() {
			num=1;
			boolean neg = false;
			if(c==NC)c=nextChar();
			for(;(c<'0' || c>'9'); c = nextChar()) {
				if(c=='-')neg=true;
			}
			long res = 0;
			for(; c>='0' && c <='9'; c=nextChar()) {
				res = (res<<3)+(res<<1)+c-'0';
				num*=10;
			}
			return neg?-res:res;
		}
		
		public double nextDouble() {
		    while(c!='.'&&c!='-'&&(c <'0' || c>'9')) c = nextChar();
		    boolean neg = c=='-';
		    if(neg)c=nextChar();
		    boolean fl = c=='.';
		    double cur = nextLong();
		    if(fl) return neg ? -cur/num : cur/num;
		    if(c == '.') {
			double next = nextLong();
			return neg ? -cur-next/num : cur+next/num;
		    }
		    else return neg ? -cur : cur;
		}
		
		public String next() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c>32) {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}
		
		public String nextLine() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c!='\n') {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}

		public boolean hasNext() {
			if(c>32)return true;
			while(true) {
				c=nextChar();
				if(c==NC)return false;
				else if(c>32)return true;
			}
		}
	}
}