#include <bits/stdc++.h>
using namespace std;
inline void getint(int &num) {
  register int ch, neg = 0;
  while (!isdigit(ch = getchar()))
    if (ch == '-') neg = 1;
  num = ch & 15;
  while (isdigit(ch = getchar())) num = num * 10 + (ch & 15);
  if (neg) num = -num;
}
int n, x, y, col, minv = 0;
char ch[10];
inline int getColor() {
  scanf("%s", ch);
  return *ch == 'b';
}
int main() {
  getint(n), puts("0 0"), fflush(stdout), col = getColor();
  for (register int i = 1, j = 500000000; i < n; i++, j >>= 1) {
    printf("%d %d\n", minv + j, minv + j), fflush(stdout);
    if (getColor() == col) minv += j;
  }
  printf("%d %d %d %d\n", minv, minv + 1, minv + 1, minv), fflush(stdout);
  return 0;
}
