#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  getline(cin, s);
  int n = s.length();
  bool m = 0, l = 0;
  int cnt = 0;
  for (int i = 0; i < 5; i++)
    if (s[i] == "miao."[i]) cnt++;
  if (cnt == 5) m = 1;
  cnt = 0;
  for (int i = n - 1, j = 0; j < 5; i--, j++)
    if (s[i] == ".alal"[j]) cnt++;
  if (cnt == 5) l = 1;
  if (m == l) {
    cout << "OMG>.< I don't know!";
  } else if (m) {
    cout << "Rainbow's";
  } else
    cout << "Freda's";
  cout << "\n";
  return;
}
int main() {
  int t;
  cin >> t;
  string temp;
  getline(cin, temp);
  while (t--) {
    solve();
  }
  return 0;
}
