#include <bits/stdc++.h>
using namespace std;
long long n, i, x, y;
string s;
int main() {
  cin >> n;
  getline(cin, s);
  for (i = 1; i <= n; i++) {
    getline(cin, s);
    if (s[0] == 'm' && s[1] == 'i' && s[2] == 'a' && s[3] == 'o' && s[4] == '.')
      x = 1;
    if (s[s.size() - 1] == '.' && s[s.size() - 2] == 'a' &&
        s[s.size() - 3] == 'l' && s[s.size() - 4] == 'a' &&
        s[s.size() - 5] == 'l') {
      y = 1;
    }
    if (x == 1 && y == 0) {
      cout << "Rainbow's\n";
    } else {
      if (x == 0 && y == 1) {
        cout << "Freda's\n";
      } else {
        cout << "OMG>.< I don't know!\n";
      }
    }
    x = 0;
    y = 0;
  }
  return 0;
}
