#include <bits/stdc++.h>
using namespace std;
int main() {
  string Unsure = "OMG>.< I don't know!";
  string Freda = "Freda's";
  string Rainbow = "Rainbow's";
  int n;
  cin >> n;
  string nextLine;
  getline(cin, nextLine);
  string messages[n];
  for (int i = 0; i < n; i++) {
    string m;
    getline(cin, m);
    messages[i] = m;
  }
  for (int i = 0; i < n; i++) {
    string m = messages[i];
    if (m.size() < 5) {
      cout << Unsure;
    } else {
      bool start = (m.substr(0, 5) == "miao.");
      bool end = (m.substr(m.size() - 5) == "lala.");
      if (start ^ end) {
        if (start) {
          cout << Rainbow;
        } else {
          cout << Freda;
        }
      } else {
        cout << Unsure;
      }
    }
    cout << "\n";
  }
}
