#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2005, INF = 1e9 + 10, mod = 1e9 + 7;
const int D[] = {-1, 1};
const double eps = 1e-9;
inline int read() {
  char c = getchar();
  int x = 0, f = 1;
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
  return x * f;
}
int N, Dx = 10;
string s, pre;
int main() {
  N = read();
  int l = 0, r = 1e9;
  printf("%d 0\n", Dx);
  fflush(stdout);
  cin >> pre;
  int ans = 0;
  for (int i = 2; i <= N; i++) {
    int mid = l + r >> 1;
    printf("%d %d\n", Dx, mid);
    fflush(stdout);
    cin >> s;
    if (s == pre)
      l = mid;
    else
      r = mid;
  }
  printf("%d %d %d %d", Dx - 1, l, Dx + 1, l + 1);
  return 0;
}
