#include <bits/stdc++.h>
using namespace std;
char buffer[10];
bool query(int x, int y) {
  cout << x << ' ' << y << endl;
  cout.flush();
  cin >> buffer;
  return (buffer[0] == 'w');
}
const int Y = 100;
bool get(int x) { return query(x, Y); }
void answer(int l, int r) {
  cout << l << ' ' << (Y - 1) << ' ';
  cout << r << ' ' << (Y + 1) << '\n';
}
int main() {
  int n;
  cin >> n;
  const bool init = get(0);
  int l = 0, r = 1000 * 1000 * 1000;
  for (int i = 1; i < n; i++) {
    int m = (r - l) / 2 + l;
    if (get(m) == init) {
      l = m;
    } else {
      r = m;
    }
  }
  answer(l, r);
  return 0;
}
