#include <bits/stdc++.h>
using namespace std;
const int maxN = 2e3 + 9, maxV = 20, MOD = 1e9 + 7, LG = 11, BASE = 29;
int n;
bool flipcoor = 0;
int lv, le = 1, ri = 1e9 - 1;
int getnum(string st) {
  if (st == "black") return 0;
  return 1;
}
int launchQuery(int x) {
  if (!flipcoor)
    cout << x << ' ' << 1 << '\n';
  else
    cout << 1 << ' ' << x << '\n';
  cout.flush();
  string respu;
  cin >> respu;
  return getnum(respu);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  lv = launchQuery(0);
  if (n == 1) {
    cout << "20 1 20 20\n";
    return 0;
  }
  int ot = launchQuery(ri);
  if (ot == lv) flipcoor = 1;
  for (int i = 2; i < n; i++) {
    int mi = (le + ri) / 2;
    if (launchQuery(mi) == lv)
      le = mi;
    else
      ri = mi;
  }
  pair<int, int> one(le, 1e9), two(ri, 0);
  if (flipcoor) swap(one.first, one.second), swap(two.first, two.second);
  cout << one.first << ' ' << one.second << ' ';
  cout << two.first << ' ' << two.second << '\n';
}
