#include <bits/stdc++.h>
using namespace std;
bool at_frst(string s, string p) {
  for (int i = 0; i < p.length(); i++)
    if (s[i] != p[i]) return false;
  return true;
}
bool at_last(string s, string p) {
  int j = s.length() - 1;
  for (int i = p.length() - 1; i >= 0; i--)
    if (s[j--] != p[i]) return false;
  return true;
}
int main() {
  int n;
  string s, p = "OMG>.< I don't know!", s1 = "Freda's", s2 = "Rainbow's";
  size_t found;
  cin >> n;
  cin.ignore(100, '\n');
  while (n--) {
    getline(cin, s);
    if (at_last(s, "lala.") && at_frst(s, "miao."))
      cout << p << "\n";
    else if (at_last(s, "lala."))
      cout << s1 << "\n";
    else if (at_frst(s, "miao."))
      cout << s2 << "\n";
    else
      cout << p << "\n";
  }
  return 0;
}
