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