#include <bits/stdc++.h>
using namespace std;
const int MAXN = 0;
int N;
int l = 0;
int r = 1e9;
string ans;
int main() {
  cin >> N;
  for (int i = 0; i < (int)N - 1; i++) {
    int m = (l + r) / 2;
    cout << m << " " << 1 << endl;
    cin >> ans;
    if (ans.compare("black") == 0)
      r = m;
    else
      l = m;
  }
  cout << l << " " << 3 << endl;
  cin >> ans;
  if (ans.compare("black") == 0)
    printf("%d %d %d %d\n", l, 2, r, 0);
  else
    printf("%d %d %d %d\n", l, 4, r, 0);
}
