#include <bits/stdc++.h>
using namespace std;
string a;
int n, l, r = 1e9, c;
bool ok(int x) {
  printf("%d 1\n", x);
  cin >> a;
  return a[0] == 'b';
}
signed main() {
  cin >> n;
  c = ok(0);
  while (n-- > 1) ok((l + r >> 1)) == c ? l = (l + r >> 1) : r = (l + r >> 1);
  printf("%d %d %d %d", l, 0, r, 2);
}
