#include <bits/stdc++.h>
signed main() {
  int n;
  std::cin >> n;
  n--;
  int l = 0, r = 1e9;
  for (int i = 1; i <= n; i++) {
    int mid = (l + r + 1) >> 1;
    std::cout << mid << " " << 5 << "\n";
    std::string s;
    std::cin >> s;
    if (s[0] == 'w')
      l = mid;
    else
      r = mid - 1;
  }
  std::cout << l << " " << 3 << "\n";
  std::string s;
  std::cin >> s;
  if (s[0] == 'b')
    printf("%d 4 %d 6\n", l, l + 1);
  else
    printf("%d 2 %d 6\n", l, l + 1);
  return 0;
}
