#include <bits/stdc++.h>
int main() {
  int n = 0;
  std::cin >> n;
  int x = 1 << 29;
  int d = 1 << 28;
  std::cout << x << " " << 1 << std::endl;
  std::string s;
  std::cin >> s;
  char c = s[0];
  x -= d;
  d >>= 1;
  int p = -1;
  for (int i = 1; i < n; ++i) {
    std::cout << x << " " << 1 << std::endl;
    std::cin >> s;
    if (s[0] == c) {
      x -= d;
      p = -1;
    } else {
      x += d;
      p = 1;
    }
    d >>= 1;
  }
  if (p == 1)
    std::cout << x << " " << 0 << " " << x + 1 << " " << 2 << "\n";
  else
    std::cout << x - 1 << " " << 0 << " " << x << " " << 2 << "\n";
}
