#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  scanf("%d", &n);
  int l = 0, r = 1000000000;
  puts("0 0");
  fflush(stdout);
  bool flag = 0;
  string s;
  cin >> s;
  if (s == "black") flag = 1;
  for (int i = 1; i < n; i++) {
    int mid = (l + r) >> 1;
    cout << mid << " 0\n";
    fflush(stdout);
    cin >> s;
    if (s == "white") {
      if (flag)
        r = mid;
      else
        l = mid;
    }
    if (s == "black") {
      if (flag)
        l = mid;
      else
        r = mid;
    }
  }
  if (l + 2 <= 1000000000)
    printf("%d %d %d %d", l + 1, 1, l + 2, 3);
  else if (r - 2 >= 0)
    printf("%d %d %d %d", r - 1, 1, r - 2, 3);
  else if (l + 1 <= 1000000000)
    printf("%d %d %d %d", l + 1, 0, l + 1, 1);
  else
    printf("%d %d %d %d", r - 1, 0, r - 1, 1);
}
