#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast", "unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const long long inf = numeric_limits<long long>::max() / 2;
const long double eps = 1e-9;
const long double pi = acos(-1);
inline void solve(), read();
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  read();
  solve();
  return 0;
}
long long n;
inline long long ask(long long x, long long y) {
  cout << x << " " << y << "\n";
  cout << flush;
  string s;
  cin >> s;
  return s == "white";
}
inline void solve() {
  long long l = 0, r = 1e9;
  long long v1 = ask(0, 1);
  long long cnt = 1;
  while (cnt < n) {
    ++cnt;
    long long m = (l + r) / 2;
    if (ask(m, 1) == v1) {
      l = m;
    } else {
      r = m;
    }
  }
  cout << l << " " << 0 << " " << r << " " << 2 << "\n";
}
inline void read() { cin >> n; }
