#include <bits/stdc++.h>
using namespace std;
int q(int x, int y) {
  cout << x << " " << y << endl;
  string s;
  cin >> s;
  return s == "black";
}
void ans(int x1, int y1, int x2, int y2) {
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
  exit(0);
}
void solve() {
  int n;
  cin >> n;
  int s = q(0, 1);
  int cnt = 1;
  int up = -1;
  for (int x = 2; cnt < n; x += 2) {
    int t = q(x, 1);
    ++cnt;
    if (t != s) {
      up = x - 1;
      break;
    }
  }
  if (up == -1) {
    ans(100, 1, 100, 0);
  }
  int l = 0, r = 1e9;
  while (cnt < n) {
    int m = (l + r) >> 1;
    int t = q(m, 0);
    ++cnt;
    if (t == s) {
      l = m + 1;
    } else {
      r = m - 1;
    }
  }
  ans(up, 1, l, 0);
}
int main() {
  ios::sync_with_stdio(0);
  cout.tie(0), cin.tie(0);
  solve();
  return 0;
}
