#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using db = long double;
using str = string;
const ll MOD = 1e9 + 7;
const ll INF = 1e18 + 5;
const db eps = 1e-6;
void solve() {
  int n;
  cin >> n;
  cout << 0 << ' ' << 1 << endl;
  string ans;
  cin >> ans;
  int left = 0, right = 1e9;
  if (ans == "white") {
    ++left;
  } else {
    swap(left, right);
    ++right;
  }
  for (int i = 2; i <= n; ++i) {
    int mid = (left + right) >> 1;
    cout << mid << ' ' << 1 << endl;
    string ans;
    cin >> ans;
    if (ans == "white") {
      left = mid;
    } else {
      right = mid;
    }
  }
  cout << min(left, right) << ' ' << 2 << ' ' << min(left, right) + 1 << ' '
       << 0;
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int tt = 1;
  while (tt--) {
    solve();
  }
  return 0;
}
