#include <bits/stdc++.h>
using namespace std;
long long query(long long x, long long y) {
  cout << x << ' ' << y << endl;
  string res;
  cin >> res;
  if (res == "white") return 0;
  return 1;
}
int32_t main() {
  long long n;
  cin >> n;
  --n;
  long long left = query(0, 0);
  long long right = 1 - left;
  long long low = 1, high = 1e9;
  while (n--) {
    long long mid = (low + high) >> 1;
    if (high - low <= 2) {
      ++n;
      break;
    }
    long long color = query(mid, 0);
    if (color == left)
      low = mid + 1;
    else
      high = mid - 1;
  }
  long long px = (low + high) >> 1;
  long long py = 0;
  long long lower = low - 1;
  low = 1, high = 1e9;
  while (n > 0) {
    --n;
    long long mid = (low + high) >> 1;
    long long color = query(lower, mid);
    if (color == left)
      low = mid + 1;
    else
      high = mid - 1;
  }
  long long p2x = lower;
  long long p2y = (low + high) >> 1;
  cout << px << ' ' << py << ' ' << p2x << ' ' << p2y << endl;
}
