Chef is buying sweet things to prepare for Halloween!

The shop sells both chocolate and candy.
Each bar of chocolate has a tastiness of X.
Each piece of candy has a tastiness of Y.

One packet of chocolate contains 2 bars, while one packet of candy contains 5 pieces.

Chef can only buy one packet of something sweet, and so has to make a decision: which one should he buy in order to maximize the total tastiness of his purchase?

Print Chocolate if the packet of chocolate is tastier, Candy if the packet of candy is tastier, and Either if they have the same tastiness.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of one line of input, containing two space-separated integers X and Y — the tastiness of one bar of chocolate and one piece of candy, respectively.

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

For each test case, output on a new line the answer:
- Chocolate if the packet of chocolate is tastier.
- Candy if the packet of candy is tastier.
- Either if they have the same tastiness.

You may print each character of the output in either uppercase or lowercase, i.e, Candy, CANDY, CaNdY and cANDy will all be treated as equivalent.

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

$1 ≤ T ≤ 100$
$1 ≤ X, Y ≤ 10$

----- Sample Input 1 ------ 
4
5 1
5 2
5 3
3 10

----- Sample Output 1 ------ 
Chocolate
Either
Candy
Candy

----- explanation 1 ------ 
Test case $1$: The packet of chocolate has a tastiness of $2\times 5 = 10$, while the packet of candy has a tastiness of $5\times 1 = 5$. The chocolate is tastier.

Test case $2$: The packet of chocolate has a tastiness of $2\times 5 = 10$, while the packet of candy has a tastiness of $5\times 2 = 10$. They have the same tastiness.

Test case $3$: The packet of chocolate has a tastiness of $2\times 5 = 10$, while the packet of candy has a tastiness of $5\times 3 = 15$. The candy is tastier.

Test case $4$: The packet of chocolate has a tastiness of $2\times 3 = 6$, while the packet of candy has a tastiness of $5\times 10 = 50$. The candy is tastier.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
r = int(input())
for i in range(r):
	s = input()
	(m, n) = s.split()
	if 2 * int(m) > 5 * int(n):
		print('Chocolate')
	elif 2 * int(m) == 5 * int(n):
		print('Either')
	else:
		print('Candy')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	a = 2 * x
	b = 5 * y
	if a > b:
		print('Chocolate')
	elif a == b:
		print('Either')
	else:
		print('Candy')


for i in range(int(input())):
	(x, y) = map(int, input().split())
	choclate_pack = 2 * x
	candy_pack = 5 * y
	if choclate_pack > candy_pack:
		print('Chocolate')
	elif choclate_pack < candy_pack:
		print('Candy')
	else:
		print('Either')


t = int(input())
for _ in range(t):
	(a, b) = input().split()
	a = int(a)
	b = int(b)
	print('Chocolate' if a * 2 > b * 5 else 'Candy' if a * 2 < b * 5 else 'Either')


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	if X * 2 > Y * 5:
		print('Chocolate')
	elif X * 2 < Y * 5:
		print('Candy')
	else:
		print('Either')


test = int(input())
ans = []
while test:
	test = test - 1
	(X, Y) = [int(x) for x in input().split()]
	if 2 * X > 5 * Y:
		ans.append('Chocolate')
	elif 5 * Y > 2 * X:
		ans.append('Candy')
	else:
		ans.append('Either')
for i in ans:
	print(i)


n = int(input())
for i in range(n):
	m = input().split()
	if int(m[0]) * 2 > int(m[1]) * 5:
		print('Chocolate')
	elif int(m[0]) * 2 == int(m[1]) * 5:
		print('Either')
	else:
		print('Candy')


t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	ans1 = 2 * a
	ans2 = 5 * b
	if ans1 > ans2:
		print('Chocolate')
	elif ans1 < ans2:
		print('Candy')
	else:
		print('Either')


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	sweetCH = 2 * X
	sweetCA = 5 * Y
	if sweetCH > sweetCA:
		print('Chocolate')
	elif sweetCH == sweetCA:
		print('Either')
	else:
		print('Candy')


T = int(input())
for i in range(T):
	(x, y) = map(int, input().split())
	b = x * 2
	c = y * 5
	if b > c:
		print('Chocolate')
	elif b == c:
		print('Either')
	else:
		print('Candy')


n = int(input())
for i in range(n):
	(x, y) = [int(x) for x in input().split()]
	if x * 2 > y * 5:
		print('Chocolate')
	elif x * 2 < y * 5:
		print('Candy')
	else:
		print('Either')


a = int(input())
for i in range(a):
	(m, n) = map(int, input().split())
	if 2 * m > 5 * n:
		print('Chocolate')
	elif 2 * m == 5 * n:
		print('Either')
	else:
		print('Candy')


t = int(input())
for _ in range(t):
	(x, y) = map(int, input().split())
	if x * 2 > y * 5:
		print('Chocolate')
	elif x * 2 == y * 5:
		print('Either')
	else:
		print('Candy')


t = int(input())
for _ in range(t):
	(a, b) = map(int, input().split())
	c = a * 2
	d = b * 5
	if c > d:
		print('Chocolate')
	elif c == d:
		print('Either')
	else:
		print('Candy')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	s = 2 * x
	u = 5 * y
	if s > u:
		print('Chocolate')
	elif u > s:
		print('Candy')
	else:
		print('Either')


n = int(input())
while n > 0:
	(a, b) = map(int, input().split())
	if a * 2 > b * 5:
		print('Chocolate')
	elif a * 2 == b * 5:
		print('Either')
	else:
		print('Candy')
	n -= 1


n = int(input())
for i in range(0, n):
	t = list(map(int, input().strip().split()))
	if t[0] * 2 > t[1] * 5:
		print('Chocolate')
	elif t[0] * 2 < t[1] * 5:
		print('Candy')
	else:
		print('Either')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	xx = x * 2
	yy = y * 5
	if xx == yy:
		print('Either')
	elif xx > yy:
		print('Chocolate')
	else:
		print('Candy')


t = int(input())
for i in range(t):
	(A, B) = map(int, input().split())
	if A * 2 > B * 5:
		print('Chocolate')
	elif A * 2 < B * 5:
		print('Candy')
	else:
		print('Either')


T = int(input())
for t in range(T):
	(X, Y) = map(int, input().split())
	q = X * 2
	w = Y * 5
	if q > w:
		print('Chocolate')
	elif q == w:
		print('Either')
	else:
		print('Candy')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	val = x * 2
	val1 = y * 5
	if val > val1:
		print('Chocolate')
	elif val == val1:
		print('Either')
	else:
		print('Candy')


cases = int(input())
for case in range(cases):
	(x, y) = map(int, input().split())
	if x * 2 > y * 5:
		print('Chocolate')
	elif x * 2 == y * 5:
		print('Either')
	else:
		print('Candy')