#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  cout << "0 0\n";
  fflush(stdout);
  string black;
  cin >> black;
  int l = 0, r = 1e9;
  for (int i = 1; i <= n - 1; i++) {
    int mid = (l + r) / 2;
    cout << mid << " 0\n";
    fflush(stdout);
    string cur;
    cin >> cur;
    if (cur == black)
      l = mid;
    else
      r = mid;
  }
  if (l == r - 1) {
    if (r + 1 <= 1e9)
      cout << r << " 1 " << r + 1 << " 3\n";
    else
      cout << l << " 1 " << l - 1 << " 3\n";
  } else {
    int mid = (l + r) / 2;
    cout << mid << " 0 " << mid << " 1\n";
  }
  return 0;
}
