#include <bits/stdc++.h>
using namespace std;
bool check(int x, int y) {
  cout << x << " " << y << endl;
  string s;
  cin >> s;
  if (s[0] == 'b') return 1;
  return 0;
}
int main() {
  int n;
  cin >> n;
  int l = 1, r = 1e9;
  bool ok = check(0, 1);
  for (int i = 1; i < n; i++) {
    int mid = (l + r) >> 1;
    bool x = check(mid, 1);
    if (x == ok) {
      l = mid + 1;
    } else
      r = mid - 1;
  }
  if (l == r + 1)
    cout << r << " " << 2 << " " << l << " " << 0 << endl;
  else
    cout << l << " " << 0 << " " << l << " " << l << endl;
}
