#include <bits/stdc++.h>
using namespace std;
string p;
int now, pre, n;
bool dong;
void verti(int mode, int x, int l, int r, int turn) {
  int m = l + r >> 1;
  if (turn > n) {
    cout << x - 1 << ' ' << m << ' ' << x + 1 << ' ' << m;
    exit(0);
  }
  cout << x << ' ' << m << ' ';
  cin >> p;
  now = 1;
  if (p[0] == 'b') now = 0;
  if (now ^ mode) verti(mode, x, l, m, turn + 1);
  verti(mode, x, m, r, turn + 1);
}
void spec(int pre, int x) {
  int m = 50, now;
  cout << x << " 50 ";
  cin >> p;
  now = 1;
  if (p[0] == 'b') now = 0;
  if (now == 1) {
    if (!pre)
      cout << x << " 49 " << x + 1 << " 0";
    else
      cout << x << " 51 " << x - 1 << " 0";
  } else {
    if (pre)
      cout << x << " 49 " << x - 1 << " 0";
    else
      cout << x << " 51 " << x + 1 << " 0";
  }
  exit(0);
}
void hori(int l, int r, int turn) {
  int m = l + r >> 1;
  if (turn > n) {
    cout << l << " 2 " << r << " 0";
    exit(0);
  }
  if (turn == 16 && !dong) verti(pre, m, 1, 1000000000, 16);
  cout << m << " 1 ";
  cin >> p;
  now = 1;
  if (p[0] == 'b') now = 0;
  if (turn == 1) pre = now;
  if (now != pre) dong = 1;
  if (turn == 29 && turn == n - 1) spec(now, m);
  if (now) hori(l, m, turn + 1);
  hori(m, r, turn + 1);
}
int main() {
  cin >> n;
  hori(0, 1000000000, 1);
  return 0;
}
