#include <bits/stdc++.h>
using namespace std;
inline long long read(void) {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return f * x;
}
int n;
int main() {
  n = read();
  int l = 0, r = 1000000000;
  cout << 1 << " " << 0 << endl;
  fflush(stdout);
  char ch[10];
  scanf("%s", ch + 1);
  bool flag = false;
  if (ch[1] == 'b') {
    flag = true;
  }
  for (register int i = 1; i < n; ++i) {
    int mid = (l + r + 1) >> 1;
    cout << 1 << " " << mid << endl;
    fflush(stdout);
    scanf("%s", ch + 1);
    if (flag) {
      ch[1] = (ch[1] == 'w') ? 'b' : 'w';
    }
    if (ch[1] == 'w') {
      l = mid;
    } else {
      r = mid;
    }
  }
  printf("0 %d 2 %d", l, l + 1);
  return 0;
}
