#include <bits/stdc++.h>
using namespace std;
int n;
int query(int x, int y) {
  cout << x << " " << y << '\n';
  fflush(stdout);
  string str;
  cin >> str;
  if (str == "black") return 1;
  return 0;
}
int main() {
  int fst = 0;
  cin >> n;
  fst = query(0, 0);
  long long int st = 1, en = 1e9 - 1;
  for (int i = 1; i < n; i++) {
    long long int md = (st + en) / 2;
    int x = query(0, md);
    if (x == fst)
      st = md + 1;
    else
      en = md - 1;
  }
  if (en >= st) {
    cout << 0 << " " << st << " " << 1 << " " << st - 1 << '\n';
    fflush(stdout);
    return 0;
  }
  cout << 1 << " " << st << " " << 3 << " " << st + 1 << '\n';
  fflush(stdout);
  return 0;
}
