#include <bits/stdc++.h>
using namespace std;
int mat[3000][3000];
int vis[3000][3000];
int cr[3000][3000];
int cl[3000][3000];
string fi;
bool kek() {
  string t;
  cin >> t;
  return t[0] == fi[0];
}
int main(int argc, char **argv) {
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  cout << 0 << ' ' << 3000 << endl;
  cin >> fi;
  int l = 0;
  int r = 1000000000;
  if (n == 1) {
    cout << 1 << ' ' << 0 << ' ' << 1 << ' ' << 1 << endl;
    return 0;
  }
  if (n != 30) {
    for (int i = 1; i < n; ++i) {
      int m = (l + r + 1) / 2;
      cout << m << ' ' << 3000 << endl;
      if (kek())
        l = m;
      else
        r = m;
    }
    int m = (l + r + 1) / 2;
    if (m == r) m--;
    cout << m << ' ' << 0 << ' ' << m << ' ' << 1 << endl;
    return 0;
  }
  for (int i = 2; i < n; ++i) {
    int m = (l + r + 1) / 2;
    cout << m << ' ' << 3000 << endl;
    if (kek())
      l = m;
    else
      r = m;
  }
  if (l != 0) {
    cout << l << ' ' << 6000 << endl;
    int m = (l + r + 1) / 2;
    int k = kek();
    if (k) {
      cout << m << ' ' << 0 << ' ' << m << ' ' << 1 << endl;
      return 0;
    }
    cout << l - 1 << ' ' << 6000 << ' ' << r << ' ' << 2999 << endl;
  } else {
    cout << r << ' ' << 6000 << endl;
    int m = (l + r + 1) / 2;
    int k = kek();
    if (k) {
      cout << r + 1 << ' ' << 6000 << ' ' << l << ' ' << 2999 << endl;
      return 0;
    }
    cout << m << ' ' << 0 << ' ' << m << ' ' << 1 << endl;
  }
  return 0;
}
