#include <bits/stdc++.h>
using namespace std;
using cd = complex<double>;
const int Inf = 100000000;
const int mod = 998244353;
const double Pi = acos(-1);
void Fastio() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}
int n;
int xw, xb;
string s;
int main() {
  cin >> n;
  cout << 2 << ' ' << 0 << endl;
  n--;
  cin >> s;
  if (s == "black") {
    xb = 0;
    xw = 1e9;
  } else {
    xb = 1e9;
    xw = 0;
  }
  while (n > 0) {
    int mid = (xw + xb) >> 1;
    cout << 2 << ' ' << mid << endl;
    cin >> s;
    if (s == "black") {
      xb = mid;
    } else {
      xw = mid;
    }
    n--;
  }
  cout << 1 << ' ' << (xw + xb) / 2 << ' ' << 3 << ' ' << (xw + xb + 1) / 2
       << endl;
}
