#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int l = 0, r = 1e9, x = 0, y = 1e9;
  for (int i = 0; i < n / 2; i++) {
    int m = (l + r) / 2;
    cout << m << " " << 0 << endl;
    string s;
    cin >> s;
    if (s == "black") {
      r = m;
    } else {
      l = m;
    }
  }
  n -= n / 2;
  for (int i = 0; i < n; i++) {
    int m = (x + y) / 2;
    cout << m << " " << 1 << endl;
    string s;
    cin >> s;
    if (s == "black")
      y = m;
    else
      x = m;
  }
  cout << (l + r) / 2 << " " << 0 << " " << (x + y) / 2 << " " << 1;
  return 0;
}
