#include <bits/stdc++.h>
using namespace std;
const long long INFLL = 2 * (long long)1e18 + 100;
const int INFINT = 2 * (int)1e9 + 100;
const double PI = atan(1) * 4;
const double EPS = 1e-6;
const int SEED = 1e3 + 7;
const int MOD = 1e9 + 7;
const int NMAX = 1e6 + 5;
int n;
int ub[2], lb[2];
int f(string s) {
  if (s == "white") return 1;
  return 0;
}
int ans = (int)1e9 / 2;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  n--;
  cout << "0 0" << endl;
  string s;
  cin >> s;
  lb[f(s)] = 0;
  ub[f(s)] = lb[f(s) ^ 1] = (int)1e9 / 2;
  ub[f(s) ^ 1] = (int)1e9;
  int here = f(s);
  int hb = 0, lw = (int)1e9;
  for (int i = 1; i <= n; i++) {
    cout << i * 100000 << ' ' << ans << endl;
    cin >> s;
    if (f(s) == here) {
      hb = ans;
      ans = (ans + lw) / 2;
    } else {
      lw = ans;
      ans = (hb + ans) / 2;
    }
  }
  0;
  0;
  cout << 0 << ' ' << ans + 1 << ' ' << (int)1e9 << ' ' << ans << endl;
  return 0;
}
