#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, x, y, i, j, k, st = 1, ed = 1e9;
  string lft, rght, temp;
  map<pair<long long, long long>, string> color;
  cin >> n;
  n--;
  cout << "0 0\n" << flush;
  cin >> lft;
  if (lft == "black")
    rght = "white";
  else
    rght = "black";
  while (n > 0) {
    long long md = st + (ed - st) / 2;
    cout << md << " 0\n" << flush;
    cin >> temp;
    if (temp == lft)
      st = md + 1;
    else
      ed = md - 1;
    n--;
  }
  if (st >= ed) {
    if (st < 1000000000)
      cout << st << " 1 " << st + 1 << " 3";
    else
      cout << st - 1 << " 1 " << st - 2 << " 3" << flush;
  } else
    cout << st << " 1 " << st - 1 << " 3" << flush;
}
