#include <bits/stdc++.h>
using namespace std;
const int mx = 1e9;
string s;
int n;
int main() {
  cin >> n;
  if (n == 1) {
    cout << "10 10\n";
    cout << "0 0 0 1000000000\n";
    return 0;
  }
  int lx = 0, rx = mx;
  for (int i = 1; i <= n / 2; i++) {
    int mid = lx + rx >> 1;
    cout << 0 << " " << mid << endl;
    fflush(stdout);
    cin >> s;
    if (s[0] == 'w')
      lx = mid + 1;
    else
      rx = mid - 1;
  }
  int lxx = 0, rxx = mx;
  for (int i = n / 2 + 1; i <= n; i++) {
    int mid = lxx + rxx >> 1;
    cout << mx << " " << mid << endl;
    fflush(stdout);
    cin >> s;
    if (s[0] == 'w')
      lxx = mid + 1;
    else
      rxx = mid - 1;
  }
  cout << "0 " << rx << " " << mx << " " << rxx << endl;
  fflush(stdout);
  return 0;
}
