#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string a[2] = {"L","R"}, s; int t = 0,x; while (cin >> x) { if (x) { cout << "F" << endl; if (x > 20) break; } else { cout << a[t] << endl; cin >> x; if (x) { cout << "F" << endl; if (x > 20) break; } else { cout << a[t] << endl; cin >> x; cout << a[t] << endl; t = 1 - t; } } } while (cin >> s) { if (s[0] == 'M') break; else { cout << "F" << endl; } } return 0; }