#include <bits/stdc++.h>
using namespace std;
long long n;
void print(long long a) { cout << a << ' ' << 0 << endl; }
long long read() {
  string s;
  cin >> s;
  return s == "black";
}
int main() {
  cin >> n;
  print(0);
  long long left = read();
  long long l = 0, r = 1000000007 - 7;
  for (int i = 1; i < n; ++i) {
    if (l + 1 == r || l >= r) n /= 0;
    long long m = (l + r) / 2;
    print(m);
    long long c = read();
    if (c == left)
      l = m;
    else
      r = m;
  }
  if (n == 1)
    cout << r / 2 << ' ' << 0 << ' ' << r / 2 << ' ' << 1 << endl;
  else if (l == 0)
    cout << r << ' ' << 1 << ' ' << r + 1 << ' ' << 3 << endl;
  else
    cout << l << ' ' << 1 << ' ' << l - 1 << ' ' << 3 << endl;
  return 0;
}
