#include <bits/stdc++.h>
using namespace std;
enum Type { BLACK, WHITE };
char Color[10];
int main() {
  int N, i, middle;
  int left, low = 1, high = 1000000000;
  scanf("%d", &N);
  printf("0 1\n");
  fflush(stdout);
  scanf("%s", Color);
  if (strcmp(Color, "black"))
    left = BLACK;
  else
    left = WHITE;
  for (i = 2; i <= N; ++i) {
    middle = (low + high) >> 1;
    printf("%d 1\n", middle);
    fflush(stdout);
    scanf("%s", Color);
    if (strcmp(Color, "black")) {
      if (left == BLACK)
        low = middle + 1;
      else
        high = middle - 1;
    } else {
      if (left == BLACK)
        high = middle - 1;
      else
        low = middle + 1;
    }
  }
  printf("%d 0 %d 2\n", max(low - 1, 0), min(high + 1, 1000000000));
  fflush(stdout);
  return 0;
}
