#include using namespace std; using u32 = uint32_t; u32 uy = u32(time(NULL)); u32 xorshift32() { uy ^= uy << 14; uy ^= uy >> 13; uy ^= uy << 15; return uy; } inline u32 myhash(const string &s) { switch(s[0]) { case 'M': return 987'654'321U; default: switch(s.size()) { case 8: return 20151224U; default: return stoi(s); } } return -1; } int main(void) { cin.tie(nullptr); ios::sync_with_stdio(false); string s; for(;;) { getline(cin, s); switch(myhash(s)) { case 987'654'321U: return 0; case 20151224: cout << 'F' << endl; break; case 0: cout << "FLR"[xorshift32() % 2 + 1] << endl; break; default: cout << "FLR"[xorshift32() % 3] << endl; break; } } return 0; }