e-olymp
Competitions

Beginners contest: Loops - 2

Exchange

On Christmas, in the evening, there were three flowers in the window, from left to right: geranium, crocus and violet. Every morning Masha cleans the dust and changes position of the right flower with central one. In the afternoon, Tanya waters the flowers and swaps left and central flowers. Print the order of the flowers after k days, at night.

Input

The first line contains a number of test cases t (1t12). Each of the following t lines contains the number of days k (1k1000).

Output

Print for each test case in a separate line three Latin letters "G", "C" and "V" (capital letters, no spaces) representing the order of flowers in k days (from left to right). Here G stands for geranium, C for crocus and V for violet.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2
1
5
Output example #1
VGC
CVG