#include <bits/stdc++.h>
using namespace std;
int n;
char s[66];
int main() {
  scanf("%d", &n);
  puts("0 0");
  fflush(stdout);
  scanf("%s", s);
  int p = 0;
  if (s[0] == 'w')
    p = 1;
  else
    p = 0;
  int l = 1, r = 999999999;
  for (int i = 2; i <= n; i++) {
    int mid = l + r >> 1;
    printf("%d %d\n", mid, mid);
    fflush(stdout);
    scanf("%s", s);
    if ((s[0] == 'w') == p)
      l = mid + 1;
    else
      r = mid - 1;
  }
  printf("%d %d %d %d\n", l - 1, r + 1, r + 1, l - 1);
  fflush(stdout);
  return 0;
}
