#include <bits/stdc++.h>
using namespace std;
long long i, j, k, l, n, q, m, d, su, sx, sy,
    prod = 1, ans, maxi, a, b, x, y, o, e, f, mini = 10000000000000, t, cnt;
string s;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int ti = 1;
  while (ti--) {
    cin >> n;
    cout << "0 1" << endl;
    cout << flush;
    cin >> s;
    if (s == "black") f = 1;
    long long lo = 0, hi = 1000000000;
    for (int i = 0; i < n - 1; i++) {
      long long mid = (hi + lo) / 2;
      cout << mid << " 1" << endl;
      cout << flush;
      cin >> s;
      if (s == "black") {
        if (f)
          lo = mid;
        else
          hi = mid;
      } else {
        if (f)
          hi = mid;
        else
          lo = mid;
      }
    }
    cout << lo << " 2 " << hi << " 0";
    cout << flush;
  }
  return 0;
}
