#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1 = 1000000000 / 2, x2 = x1, y1 = 0, y2 = 1000000000, permx = x1,
      permy = x1, cl = 1, a = 0, b = 1000000000;
  int n;
  cin >> n;
  cout << "0 0" << endl;
  string s;
  cin >> s;
  if (s == "black") {
    cl = 0;
  }
  for (int i = 1; i < n; i++) {
    cout << permx << " " << permy << endl;
    cin >> s;
    if (cl == 1) {
      if (s == "black") {
        b = permx;
      } else {
        a = permx;
      }
    } else {
      if (s == "white") {
        b = permx;
      } else {
        a = permx;
      }
    }
    permx = (a + b) / 2;
  }
  if (permx == 0)
    cout << "1 0 0 1000000000";
  else
    cout << permx << " " << 0 << " " << permx + 1 << " " << 1000000000;
}
