#include <bits/stdc++.h>
using namespace std;
const int Y = 10;
int n;
string fcol = "";
bool place(int y, int x) {
  cout << x << " " << y << endl;
  string ret;
  cin >> ret;
  return (ret == fcol);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  cout << "0 " << Y << endl;
  cin >> fcol;
  bool lastbl = true;
  int cx = 0;
  int jmp = (1 << 28);
  for (int i = 0; i < n - 1; ++i) {
    if (lastbl) {
      lastbl = place(Y, cx + jmp);
      cx += jmp;
    } else {
      lastbl = place(Y, cx - jmp);
      cx -= jmp;
    }
    jmp /= 2;
  }
  if (lastbl) {
    cout << cx << " " << Y + 1 << " " << cx + 1 << " " << Y - 1 << endl;
  } else {
    cout << cx << " " << Y + 1 << " " << cx - 1 << " " << Y - 1 << endl;
  }
  return 0;
}
