#include <bits/stdc++.h>
using namespace std;
int N;
vector<pair<int, bool> > V;
char S[100];
bool ask(pair<int, int> point) {
  cout << point.first << " " << point.second << "\n";
  fflush(stdout);
  cin >> (S + 1);
  if (S[1] == 'b') return 1;
  return 0;
}
void Solve() {
  cin >> N;
  int left, right;
  left = 0;
  int stp = 28;
  bool aux = ask(make_pair(0, 0));
  V.push_back(make_pair(0, aux));
  for (int i = 2; i <= N; i++, stp--) {
    aux = ask(make_pair(left + (1 << stp), left + (1 << stp)));
    V.push_back(make_pair(left + (1 << stp), aux));
    if (aux == V[0].second) left += (1 << stp);
  }
  int res = left;
  cout << res + 1 << " " << res << " " << res << " " << res + 1 << "\n";
}
int main() {
  Solve();
  return 0;
}
