#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9 + 7;
const long long N = 2e3 + 5;
long long n, k, first, second;
long long A[N], vis[N][N];
pair<long long, long long> d[N][N];
const long long dx[4] = {0, 1, 0, -1};
const long long dy[4] = {1, 0, -1, 0};
long long fx[4] = {0, 0, 1, 0};
long long fy[4] = {1, 0, 0, 0};
string s[N];
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long i, j, a = 0, b;
  cin >> n;
  string s, t;
  cout << 0 << " " << 0 << endl;
  cin >> s;
  t = s;
  long long mx = 1000000000LL / 2, my;
  my = mx;
  long long lx = 0, ly = 0, hx, hy;
  hx = mx * 2LL;
  hy = my * 2LL;
  my = mx;
  for (i = 1; i < n; i++) {
    mx = (lx + hx) / 2;
    my = (ly + hy) / 2;
    cout << mx << " " << my << endl;
    cin >> t;
    if (t == s)
      lx = mx, ly = my;
    else
      hx = mx, hy = my;
  }
  cout << hx - 1 << " " << hy << " " << hx << " " << hy - 1 << endl;
}
