Tamer is traveling with his brother on a long highway. He sees a traffic light at a distance. He calculated that it will take him x seconds until he arrives at the traffic light, he also knows that the green light lasts for g seconds, the yellow light lasts for y seconds and the red light lasts for r seconds. Now he is wondering in what color will the light be when he arrives there?
You know he is now busy driving, so he asks you to tell him the answer! you know that the light has just turned green at the moment of his question, and that the sequence of the lights is: _GREEN_, _YELLOW_, _RED_ and then _GREEN_ and so on.
The first line of input contains one integer T - the number of test cases.
Each test case contains four integers x, g, y, r as described in the statement.
1 ≤ x, g, y, r ≤ 109
For each test case output a single word, _"RED"_ or _"YELLOW"_ or _"GREEN"_ without the quotes.
In the samples the light changes as follows:
Light: _g, g, g, g, g, y, y, r, r, r, r, r , r , r , r , g , g , g , g ..._
Time : _0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18..._
## Input
The first line of input contains one integer T - the number of test cases.Each test case contains four integers x, g, y, r as described in the statement.1 ≤ x, g, y, r ≤ 109
## Output
For each test case output a single word, _"RED"_ or _"YELLOW"_ or _"GREEN"_ without the quotes.
[samples]
## Note
In the samples the light changes as follows:Light: _g, g, g, g, g, y, y, r, r, r, r, r , r , r , r , g , g , g , g ..._Time : _0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18..._
**Definitions**
Let $ T \in \mathbb{Z} $ be the number of test cases.
For each test case $ k \in \{1, \dots, T\} $, let:
- $ x_k \in \mathbb{Z}^+ $: time (in seconds) until Tamer arrives at the traffic light.
- $ g_k, y_k, r_k \in \mathbb{Z}^+ $: durations (in seconds) of green, yellow, and red phases respectively.
The light cycle is periodic with period $ C_k = g_k + y_k + r_k $, and the sequence within one cycle is:
- Green for $ [0, g_k) $,
- Yellow for $ [g_k, g_k + y_k) $,
- Red for $ [g_k + y_k, g_k + y_k + r_k) $.
**Constraints**
1. $ 1 \le T \le 10^5 $
2. $ 1 \le x_k, g_k, y_k, r_k \le 10^9 $ for all $ k \in \{1, \dots, T\} $
**Objective**
For each test case $ k $, determine the color of the light at time $ x_k $:
Let $ t_k = x_k \bmod C_k $.
- If $ 0 \le t_k < g_k $, output "GREEN"
- If $ g_k \le t_k < g_k + y_k $, output "YELLOW"
- If $ g_k + y_k \le t_k < C_k $, output "RED"