#include <bits/stdc++.h>
using namespace std;
void query(int x) {
  printf("%d 1\n", x);
  fflush(stdout);
}
int col;
bool reply() {
  char s[10];
  scanf("%s", s);
  return (s[0] == 'b');
}
int main() {
  int n;
  scanf("%d", &n);
  int lo = 0, hi = 1e9;
  query(0);
  col = reply();
  for (int i = 2; i <= n; i++) {
    int mid = (hi + lo) / 2;
    query(mid);
    if (reply() == col) {
      lo = mid;
    } else {
      hi = mid;
    }
  }
  printf("%d 0 %d 2", lo, hi);
  fflush(stdout);
}
