#include <bits/stdc++.h>
using namespace std;
const long double PI = 3.14159265359;
const long long MOD = (long long)998244353ll;
const long long MAXN = (long long)2e5 + 10;
const long long INF = (long long)9223372036854775;
const long double EPS = (long double)1e-8;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  string s;
  cout << "0 0" << endl;
  cin >> s;
  if (n == 1) return cout << "1 0 1 1", 0;
  long long dw = 0;
  long long up = (long long)1e9 + 1;
  long long mid;
  string t = "w";
  for (int i = 1; i < n - 1; i++) {
    mid = (up + dw) / 2;
    cout << mid << " 0" << endl;
    cin >> t;
    if (s == t) {
      dw = mid;
    } else
      up = mid;
  }
  cout << dw + 1 << " 1" << endl;
  cin >> t;
  if (t == s)
    cout << dw + 1 << " 0 " << dw + 2 << " 1" << endl;
  else
    cout << dw + 1 << " 0 " << dw << " 1" << endl;
  return 0;
}
