In Chefland, each chicken has X legs and each duck has Y legs. Chef's farm can have exactly one type of bird. 

Given that the birds on the farm have a total of Z legs:
Print CHICKEN, if the farm can have only chickens but not ducks.
Print DUCK, if the farm can have only ducks but not chickens.
Print ANY, if the farm can have either chickens or ducks.
Print NONE, if the farm can have neither chickens nor ducks.

------ Input Format ------ 

- The first line will contain T, the number of test cases. Then the test cases follow.
- Each test case consists of a single line of input, containing three space-separated integers X, Y, Z.

------ Output Format ------ 

For each test case, output in a single line the type of bird on the farm.
- Print CHICKEN, if the farm can have only chickens but not ducks.
- Print DUCK, if the farm can have only ducks but not chickens.
- Print ANY, if the farm can have either chickens or ducks.
- Print NONE, if the farm can have neither chickens nor ducks.

You may print each character of the string in uppercase or lowercase (for example, the strings \texttt{AnY}, \texttt{anY}, \texttt{any} and \texttt{ANY} will all be treated as identical).

------ Constraints ------ 

$1 ≤ T ≤ 1000$
$1 ≤ X, Y, Z ≤ 1000$

----- Sample Input 1 ------ 
3
2 3 5
2 2 2
3 4 6
----- Sample Output 1 ------ 
NONE
ANY
CHICKEN
----- explanation 1 ------ 
Test case $1$: There are $5$ legs on the farm. Each chicken has $2$ legs and each duck has $3$ legs. Thus, the farm can have neither chickens nor ducks.

Test case $2$: There are $2$ legs on the farm. Each chicken has $2$ legs and each duck has $2$ legs. Thus, the farm can have any bird among chicken and duck.

Test case $3$: There are $6$ legs on the farm. Each chicken has $3$ legs and each duck has $4$ legs. Thus, the farm can have chicken only.

Difficulty: EASY

Solutions:
t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split(' '))
	if z % x == 0 and z % y == 0:
		print('ANY')
	elif z % x == 0 and z % y != 0:
		print('CHICKEN')
	elif z % x != 0 and z % y == 0:
		print('DUCK')
	else:
		print('NONE')


t = int(input())
while t > 0:
	(x, y, z) = map(int, input().split())
	if z % x == 0 and z % y == 0:
		print('ANY')
	elif z % x == 0:
		print('CHICKEN')
	elif z % y == 0:
		print('DUCK')
	else:
		print('NONE')
	t -= 1


for i in range(int(input())):
	(X, Y, Z) = map(int, input().split())
	if Z % X == 0 and Z % Y == 0:
		print('ANY')
	elif Z % X != 0 and Z % Y != 0:
		print('NONE')
	elif Z % X == 0 and Z % Y != 0:
		print('CHICKEN')
	elif Z % X != 0 and Z % Y == 0:
		print('DUCK')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	if c % a == 0 and c % b == 0:
		print('ANY')
	elif c % a == 0 and c % b != 0:
		print('CHICKEN')
	elif c % a != 0 and c % b == 0:
		print('DUCK')
	elif c % a != 0 and c % b != 0:
		print('NONE')


t = int(input())
for i in range(t):
	(X, Y, Z) = list(map(int, input().split()))
	a = Z % X
	b = Z % Y
	if a == 0 and b == 0:
		print('ANY')
	elif a == 0:
		print('CHICKEN')
	elif a != 0 and b != 0:
		print('NONE')
	else:
		print('DUCK')


n = int(input())
for i in range(n):
	ar = list(map(int, input().split(' ')))
	if ar[2] % ar[0] == 0 and ar[2] % ar[1] == 0:
		print('ANY')
	elif ar[2] % ar[0] == 0:
		print('CHICKEN')
	elif ar[2] % ar[1] == 0:
		print('DUCK')
	else:
		print('NONE')


for i in range(int(input())):
	(x, y, z) = map(int, input().split())
	a = z % x
	b = z % y
	if a == 0 and b == 0:
		print('ANY')
	elif b == 0:
		print('DUCK')
	elif a == 0:
		print('CHICKEN')
	elif a != 0 and b != 0:
		print('NONE')


t = int(input())
for _ in range(t):
	(legs_per_chicken, legs_per_duck, total_legs) = map(int, input().split())
	chicken = total_legs % legs_per_chicken == 0
	duck = total_legs % legs_per_duck == 0
	if chicken and duck:
		print('ANY')
	elif chicken:
		print('CHICKEN')
	elif duck:
		print('DUCK')
	else:
		print('NONE')


T = int(input())
while T > 0:
	(X, Y, Z) = map(int, input().split())
	if Z % X == 0 and Z % Y != 0:
		print('CHICKEN')
	elif Z % Y == 0 and Z % X != 0:
		print('DUCK')
	elif Z % X != 0 and Z % Y != 0:
		print('NONE')
	else:
		print('ANY')
	T = T - 1