#include <bits/stdc++.h>
using namespace std;
int in() {
  int x;
  scanf("%d", &x);
  return x;
}
long long lin() {
  long long x;
  scanf("%lld", &x);
  return x;
}
int ask(int x, int y) {
  cout << x << " " << y << endl;
  string s;
  cin >> s;
  return s[0] == 'b';
}
void out(int x1, int y1, int x2, int y2) {
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
}
int main() {
  int n;
  cin >> n;
  int r = ask(0, 0);
  int c = 1, y1 = -1;
  while (c < n) {
    c++;
    int s = ask(0, 2 * c - 2);
    if (s != r) {
      y1 = 2 * c - 3;
      break;
    }
  }
  if (y1 == -1) {
    out(0, 1000, 1, 1000);
    return 0;
  }
  if (c == n) {
    out(0, y1, 1, y1);
    return 0;
  }
  int sm = 0, df = 1e9;
  while (c < n) {
    c++;
    int m = (sm + df) / 2;
    int s = ask(1, m);
    if (s == r) {
      sm = m;
    } else {
      df = m;
    }
  }
  out(0, y1, 1, sm + 1);
  return 0;
}
