#include <bits/stdc++.h>
inline int getint() {
  int x = 0, p = 1;
  char c = getchar();
  while (c <= 32) c = getchar();
  if (c == 45) p = -p, c = getchar();
  while (c > 32) x = x * 10 + c - 48, c = getchar();
  return x * p;
}
using namespace std;
int l, r = 1000000000, n, cnt1, cnt2;
bool hh;
bool P(int x) {
  printf("%d %d\n", x, 1);
  fflush(stdout);
  char s[10];
  scanf("%s", s);
  if (s[0] == 'b')
    cnt1++;
  else
    cnt2++;
  return s[0] == 'b';
}
int main() {
  scanf("%d", &n);
  if (P(0)) hh = 1;
  for (register int(i) = 0; (i) < (n - 1); ++(i)) {
    int mid = (l + r) >> 1;
    bool ok = P(mid);
    if (ok ^ hh)
      r = mid;
    else
      l = mid;
  }
  if (!cnt1 || !cnt2)
    printf("%d %d %d %d\n", 3, 3, 4, 3);
  else
    printf("%d %d %d %d\n", l, 0, r, 2);
  fflush(stdout);
  return 0;
}
