#include <bits/stdc++.h>
using namespace std;
int main() {
  int TESTS = 1;
  while (TESTS--) {
    long long int n, low(0), high(1000000000), a, b, c, i, j, k, mid;
    string s, s1;
    cin >> n;
    cout << 0 << ' ' << 100 << '\n';
    cin >> s;
    s1 = s;
    for (long long int i = 1; i < n; i++) {
      mid = (low + high) / 2;
      cout << mid << ' ' << 100 << '\n';
      cin >> s;
      if (s == s1)
        low = mid;
      else
        high = mid;
    }
    cout << low << ' ' << 50 << ' ' << high << ' ' << 150 << '\n';
  }
  return 0;
}
