/*
 * This template is valid both in C and in C++,
 * so you can expand it with code from both languages.
 */

#include <assert.h>
#include <stdio.h>

int main() {
  //  uncomment the following lines if you want to read/write from files
  //  freopen("input.txt", "r", stdin);
  //  freopen("output.txt", "w", stdout);
  int testcase, T;
  int A, C, r, g, b;

  assert(1 == scanf("%d", &T));
  for (testcase = 0; testcase < T; testcase++) {
    assert(5 == scanf("%d %d %d %d %d", &A, &C, &r, &g, &b));
    // insert your code here
    if (A == 42) {
      printf("RED\n");  // change this...
    } else {
      printf("GREEN\n");
    }
  }
  return 0;
}
