#include <bits/stdc++.h>
int main() {
  int n;
  std::string last;
  std::cin >> n;
  std::cout << 1000000000 << " " << 100 << "\n" << std::flush;
  std::cin >> last;
  std::string first = last;
  long long l = 1;
  long long r = 999999999;
  for (int i = 0; i < n - 1; i++) {
    long long m = (l + r) / 2;
    std::cout << m << " " << 100 << "\n" << std::flush;
    std::cin >> last;
    if (last == first) {
      r = m - 1;
    } else {
      l = m + 1;
    }
  }
  std::cout << r << " " << 99 << " " << l << " " << 101 << "\n";
  return 0;
}
