#include <bits/stdc++.h>
using namespace std;
int main() {
  long long g = 536870912 / 2;
  int n, x = 0, y = 0, arr[31] = {0}, i;
  cin >> n;
  cout << x << " " << y << "\n";
  fflush(stdout);
  string s;
  cin >> s;
  if (s == "black")
    arr[0] = 0;
  else
    arr[0] = 1;
  for (i = 1; i < n; i++) {
    x += g;
    y += g;
    cout << x << " " << y << "\n";
    fflush(stdout);
    string st;
    cin >> st;
    if (st == "black")
      arr[i] = 0;
    else
      arr[i] = 1;
    if (i < n - 1) g = g / 2;
    if (arr[i] != arr[i - 1]) {
      g = -g;
    }
  }
  cout << x + g << " " << y << " " << x << " " << y + g << "\n";
  return 0;
}
