#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  cout << "0 1" << endl;
  if (n == 1) {
    cout << "1 0 1 1" << endl;
    return 0;
  }
  string c1, c2, c;
  cin >> c1;
  if (c1 == "black")
    c2 = "white";
  else
    c2 = "black";
  int l = 0, r = (int)1e9;
  int m;
  for (int i = 0; i < (n - 1); i++) {
    m = (l + r) / 2;
    cout << m << ' ' << 1 << endl;
    cin >> c;
    if (c == c1)
      l = m;
    else
      r = m;
  }
  cout << l << ' ' << 2 << ' ' << r << ' ' << 0 << endl;
}
