#include <bits/stdc++.h>
const char nl = '\n';
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 0x3f3f3f3f;
bool query(int x, int y) {
  cout << x << " " << y << endl;
  fflush(stdout);
  string ans;
  cin >> ans;
  return ans == "white";
}
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    query(0, 0);
    cout << "1 0 1 1" << endl;
    return 0;
  }
  bool w = query(0, 10);
  int l = 0;
  for (int i = 2, step = 5e8; i <= n; i++, step /= 2) {
    if (query(l + step, 10) == w) {
      l += step;
    }
  }
  cout << l << " 9 " << l + 1 << " 11 " << endl;
  return 0;
}
