#include <bits/stdc++.h>
using namespace std;
int main() {
  int testCases = 0;
  string str1 = "lala.", str2 = "miao.";
  vector<string> myvec;
  cin >> testCases;
  cin.ignore();
  for (int i = 0; i < testCases; i++) {
    string str;
    getline(cin, str);
    bool freda = false, rainbow = false;
    if (str.size() > 4 && str[str.size() - 1] == '.' &&
        str[str.size() - 2] == 'a' && str[str.size() - 3] == 'l' &&
        str[str.size() - 4] == 'a' && str[str.size() - 5] == 'l')
      freda = true;
    if (str.size() > 4 && str[0] == 'm' && str[1] == 'i' && str[2] == 'a' &&
        str[3] == 'o' && str[4] == '.')
      rainbow = true;
    if (rainbow && !freda)
      myvec.push_back("Rainbow's");
    else if (!rainbow && freda)
      myvec.push_back("Freda's");
    else
      myvec.push_back("OMG>.< I don't know!");
  }
  for (int i = 0; i < myvec.size(); i++) cout << myvec[i] << endl;
  return 0;
}
