#include <iostream>
using namespace std;

int main() {
	int n, day;
	cin >> n;
	while (n--) {
		cin >> day;
		if (day % 3 == 1)
			cout<<"VGC"<<endl;
		else if (day % 3 == 2)
			cout<<"CVG"<<endl;
		else
			cout<<"GCV"<<endl;
	}
	return 0;
}