#include <bits/stdc++.h>
using namespace std;
int main() {
  map<string, int> M;
  M["white"] = 0;
  M["black"] = 1;
  int n, l = 0, r = 1e9, c;
  string s;
  cin >> n;
  cout << "0 1" << endl;
  cin >> s;
  c = M[s];
  for (int i = 2; i <= n; i++) {
    int gg = l + r >> 1;
    cout << gg << " 1" << endl;
    cin >> s;
    if (M[s] == c)
      l = gg;
    else
      r = gg;
  }
  cout << l << " 0 " << r << " 2" << endl;
}
