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