#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int horizontal = 1;
  int first = -1;
  int low = 0, high = 1 << (n - 1);
  cout << 0 << " " << 0 << endl;
  string color;
  cin >> color;
  if (color == "black") {
    first = 1;
  } else {
    first = 0;
  }
  bool sawother = 0;
  int step = 1 << (n - 1);
  step /= 2;
  for (int i = 1; i < n; ++i) {
    if (horizontal) {
      cout << high << " " << 0 << endl;
    } else {
      cout << 0 << " " << high << endl;
    }
    cin >> color;
    int c = (color == "black") ? 1 : 0;
    if (c == first && i == 1) {
      horizontal = 0;
      high /= 2;
    } else if (c == first) {
      low = high;
      high += step;
    } else {
      sawother = 1;
      high -= step;
    }
    step /= 2;
  }
  int cur = 1 << (n - 1);
  if (!sawother) {
    if (horizontal) {
      cout << cur + 1 << " " << 0 << " " << cur + 1 << " " << 1 << endl;
    } else {
      cout << 0 << " " << cur + 1 << " " << 1 << " " << cur + 1 << endl;
    }
  } else {
    if (horizontal) {
      cout << high << " " << 0 << " " << high << " " << 1 << endl;
    } else {
      cout << 0 << " " << high << " " << 1 << " " << high << endl;
    }
  }
  return 0;
}
