#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int ch = getchar(), ans = 0, f = 1;
  for (; ch < '0' || ch > '9'; ch = getchar())
    if (ch == '-') f = 0;
  for (; ch >= '0' && ch <= '9'; ch = getchar())
    ans = (((ans << 2) + ans) << 1) + (ch ^ '0');
  return f ? ans : -ans;
}
int n;
int l, r;
int main() {
  n = read();
  cout << 0 << ' ' << 0 << endl;
  int l = 0, r = (1 << 29);
  int mid;
  char color;
  char c[20];
  scanf("%s", c);
  if (c[0] == 'w') {
    color = 'w';
  } else {
    color = 'b';
  }
  for (int i = 2; i <= n; ++i) {
    mid = (l + r) >> 1;
    cout << mid << ' ' << mid << endl;
    char c[20];
    scanf("%s", c);
    if (c[0] == color) {
      l = mid;
    } else {
      r = mid;
    }
  }
  cout << r - 1 << ' ' << r << ' ' << r << ' ' << r - 1 << endl;
  return 0;
}
