#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  bool is_black[n];
  int x[n];
  int i = 0;
  string s;
  int right = 1000000000;
  while (i < n) {
    x[i] = right;
    cout << right << " " << 0 << endl << flush;
    cin >> s;
    is_black[i] = s == "black";
    if (i > 0 && is_black[i] != is_black[i - 1]) {
      break;
    }
    i++;
    right /= 2;
  }
  if (i == n) {
    cout << "0 0 0 1\n";
    return 0;
  }
  int left = x[i];
  right = x[i - 1];
  bool left_black = is_black[i];
  int j = i + 1;
  while (j < n) {
    x[j] = (left + right) / 2;
    cout << x[j] << " 0\n" << flush;
    cin >> s;
    is_black[j] = s == "black";
    if (left_black) {
      if (is_black[j]) {
        left = x[j];
      } else {
        right = x[j];
      }
    } else {
      if (is_black[j]) {
        right = x[j];
      } else {
        left = x[j];
      }
    }
    j++;
  }
  cout << left << " 1 " << left - 1 << " 3\n" << flush;
  return 0;
}
