#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long int n;
  cin >> n;
  long long int y = 50;
  long long int left = 0, right = 1000000000;
  long long int t1 = 0;
  while (n-- && t1 < 28) {
    long long int mid = left + right;
    mid /= 2;
    cout << mid << " " << y << endl;
    string s;
    cin >> s;
    if (s == "black") {
      left = mid;
    } else {
      right = mid;
    }
    t1++;
  }
  if (n == -1) {
    long long int mid = left + right;
    mid /= 2;
    cout << mid << " " << 1 << " " << mid << " " << 0 << endl;
  } else if (n == 0) {
    long long int mid = left + right;
    mid /= 2;
    cout << mid << " " << 0 << endl;
    string s;
    cin >> s;
    if (s == "black") {
      cout << mid << " " << 50 << " " << mid + 1 << " " << 49 << endl;
      return 0;
    } else {
      cout << mid << " " << 50 << " " << mid - 1 << " " << 49 << endl;
      return 0;
    }
  } else {
    long long int mid1 = left + 1, mid2 = right - 1;
    cout << mid1 << " " << 0 << endl;
    string s, s2;
    cin >> s;
    cout << mid2 << " " << 100 << endl;
    cin >> s2;
    if (s == "black" && s2 == s) {
      cout << mid1 + 1 << " " << 0 << " " << mid2 + 1 << " " << 100 << endl;
      return 0;
    } else if (s == "white" && s2 == s) {
      cout << mid1 - 1 << " " << 0 << " " << mid2 - 1 << " " << 100 << endl;
      return 0;
    } else if (s == "black") {
      cout << mid1 + 1 << " " << 0 << " " << mid2 - 1 << " " << 100 << endl;
      return 0;
    } else {
      cout << mid1 << " " << 50 << " " << mid1 - 1 << " " << 49 << endl;
      return 0;
    }
  }
}
