#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string color;
  string s;
  vector<int> A = {0, 0, 536870912, 536870913};
  vector<int> B = {0, 0, 0, 536870912};
  int x = 536870912;
  int y = 536870912;
  int x1 = 0;
  int x2 = x;
  cout << x << " " << y << endl;
  cout << flush;
  cin >> color;
  s = color;
  x = x / 2;
  for (int i = 1; i < n; i++) {
    cout << x << " " << y << endl;
    cout << flush;
    cin >> color;
    if (color == s) {
      A[2] = x;
      A[3] = y + 1;
      x2 = x;
      x = x1 + (x2 - x1) / 2;
    } else {
      B[2] = x;
      B[3] = y - 1;
      x1 = x;
      x = x1 + (x2 - x1) / 2;
    }
  }
  cout << A[0] << " " << A[1] << " " << A[2] << " " << A[3] << endl;
  cout << flush;
}
