#include <bits/stdc++.h>
void Solve();
int main() { Solve(); }
using namespace std;
const long long INF = 1e9;
void Solve() {
  long long n;
  cin >> n;
  bool b1 = false;
  bool b2 = false;
  cout << 0 << " " << 1 << '\n';
  if (n == 1) {
    cout << "0 0 2 2" << '\n';
    return;
  }
  cout << INF / 2 << " " << 1 << '\n';
  string in;
  cin >> in;
  if (in[0] == 'b') b1 = true;
  cin >> in;
  if (in[0] == 'b') b2 = true;
  long long left, right;
  bool color = b1;
  if (b1 == b2) {
    left = INF / 2;
    right = INF;
  } else {
    left = 0;
    right = INF / 2;
  }
  bool current;
  for (long long i = (0); i < (n - 2); i++) {
    long long mid = (left + right) / 2;
    cout << mid << " " << 1 << '\n';
    cin >> in;
    if (in[0] == 'b')
      current = true;
    else
      current = false;
    if (current == color) {
      left = mid;
    } else
      right = mid;
  }
  cout << left << " " << 0 << " " << right << " " << INF << '\n';
}
