#include <bits/stdc++.h>
using namespace std;
int n;
inline int GetColor(int x, int y) {
  printf("%d %d\n", x, y);
  fflush(stdout);
  static char rst[20];
  scanf("%s", rst);
  return rst[0] == 'b';
}
inline int Calc(int n, int px) {
  int l = 0, r = 1e9;
  for (int i = 1; i <= n; ++i) {
    int mid = (l + r) >> 1;
    int col = GetColor(px, mid);
    if (col == 1)
      l = mid + 1;
    else
      r = mid - 1;
  }
  return l;
}
int main() {
  scanf("%d", &n);
  if (n == 1) {
    GetColor(0, 0);
    return puts("1 1 2 1"), 0;
  }
  int ans1 = Calc(n / 2, 0);
  int ans2 = Calc(n - n / 2, 100);
  printf("%d %d %d %d\n", 0, ans1, 100, ans2);
  return 0;
}
