#include <bits/stdc++.h>
using namespace std;
map<string, int> Map;
int n, now, x, y;
int main() {
  cin >> n;
  for (int i = 1; i <= 5; i++)
    ;
  string s;
  Map["black"] = 1;
  Map["white"] = 0;
  cout << "0 1" << endl;
  x = 1;
  y = 1e9;
  cin >> s;
  now = Map[s];
  for (int i = 2; i <= n; i++) {
    int mid = (x + y) >> 1;
    cout << mid << " " << 1 << endl;
    cin >> s;
    if (Map[s] == now)
      x = mid + 1;
    else
      y = mid - 1;
  }
  cout << x << " 0 " << y << " 2" << endl;
}
