#include <bits/stdc++.h>
using namespace std;
int n, l, r;
int main() {
  scanf("%d", &n);
  l = 0;
  r = 1e9;
  for (int i = 1; i <= min(29, n); i++) {
    int mid = (l + r) >> 1;
    printf("%d 500000000\n", mid);
    fflush(stdout);
    scanf("\n");
    char st[10000];
    scanf("%s", st + 1);
    if (st[1] == 'b')
      l = mid;
    else
      r = mid;
  }
  if (n <= 29) {
    printf("%d 500000001 %d 499999999\n", l, r);
    fflush(stdout);
    return 0;
  }
  printf("%d 600000000\n", l);
  fflush(stdout);
  scanf("\n");
  char st[10000];
  scanf("%s", st + 1);
  if (st[1] == 'b')
    printf("%d 499999999 %d 500000001\n", l, r);
  else
    printf("%d 500000001 %d 499999999\n", l, r);
  fflush(stdout);
  return 0;
}
