#include <bits/stdc++.h>
using namespace std;
bool test = true;
void solve();
int main() {
  int t = 1;
  if (test) cin >> t;
  while (t--) solve();
}
int n;
string s;
void solve() {
  cin >> n >> s;
  if (n < 3200)
    cout << "red";
  else
    cout << s;
}
