Chef and Chefina are competing against each other in a programming contest. They were both able to solve all the problems in the contest, so the winner between them must be decided by time penalty. Chef solved all the problems in X minutes and made P wrong submissions, while Chefina solved all the problems in Y minutes and made Q wrong submissions. Who won the competition (or was it a draw)?

Note: The time penalty is calculated as follows:
The base time penalty is the time at which the final problem was solved (so, X for Chef and Y for Chefina)
Each wrong submission adds a penalty of 10 minutes
The winner is the person with less penalty time. If they both have the same penalty, it is considered a draw.

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

- The first line of input contains a single integer T, denoting the number of test cases. The description of T test cases follows.
- The first and only line of each test case contains four space-separated integers — X,Y,P, and Q respectively.

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

For each test case, output a single line containing one string — the name of the winner ("Chef" or "Chefina"), or "Draw" if the match was a draw. Print each string without the quotes.

Each character of the answer can be printed in either uppercase or lowercase, i.e, the strings "Chef", "chEf", "cHeF", etc. are treated as equivalent.

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

$1 ≤ T ≤ 1000$
$1 ≤ X,Y ≤ 100$
$0 ≤ P,Q ≤ 100$

----- Sample Input 1 ------ 
3
10 8 2 3
10 10 10 10
40 21 2 0

----- Sample Output 1 ------ 
Chef
Draw
Chefina
----- explanation 1 ------ 
Test Case $1$: 
- Chef solved the problems in $10$ minutes and made $2$ wrong submissions, thus his total penalty is $10 + 2 \cdot 10 = 30$ minutes.
- Chefina solved the problems in $8$ minutes and made $3$ wrong submissions, thus her total penalty is $8 + 3 \cdot 10 = 38$ minutes.

Chef took less time, so he is the winner.

Test Case $2$:
- Chef solved the problems in $10$ minutes and made $10$ wrong submissions, thus his total penalty is $10 + 10 \cdot 10 = 110$ minutes.
- Chefina solved the problems in $10$ minutes and made $3$ wrong submissions, thus her total penalty is $10 + 10 \cdot 10 = 110$ minutes.

Chef and Chefina took the same time, so the match is a draw.

Test Case $3$:
- Chef solved the problems in $40$ minutes and made $2$ wrong submissions, thus his total penalty is $40 + 2 \cdot 10 = 60$ minutes.
- Chefina solved the problems in $21$ minutes and made $0$ wrong submissions, thus her total penalty is $21 + 0 \cdot 10 = 21$ minutes.

Chefina took less time, so she is the winner.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
for i in range(int(input())):
	(chef, chefina, c1, c2) = map(int, input().split())
	chef_score = chef + 10 * c1
	chefina_score = chefina + 10 * c2
	if chef_score < chefina_score:
		print('Chef')
	elif chef_score > chefina_score:
		print('Chefina')
	else:
		print('Draw')


t = int(input())
for i in range(t):
	(x, y, p, q) = map(int, input().split())
	if x + p * 10 < y + q * 10:
		print('Chef')
	elif x + p * 10 > y + q * 10:
		print('Chefina')
	else:
		print('Draw')


n = int(input())
for i in range(n):
	(a, b, c, d) = map(int, input().split())
	e = a + c * 10
	f = b + d * 10
	if e > f:
		print('Chefina')
	elif e == f:
		print('Draw')
	elif e < f:
		print('Chef')


t = int(input())
for i in range(t):
	(m, n, o, p) = map(int, input().split())
	a = m + o * 10
	b = n + p * 10
	if a < b:
		print('Chef')
	elif a == b:
		print('Draw')
	else:
		print('Chefina')


for i in range(int(input())):
	(a, b, c, d) = map(int, input().split())
	s = a + c * 10
	s1 = b + d * 10
	if s == s1:
		print('Draw')
	elif s < s1:
		print('Chef')
	else:
		print('Chefina')


t = int(input())
for i in range(t):
	(a, b, c, d) = map(int, input().split())
	n = c * 10
	p = d * 10
	k = a + n
	l = b + p
	if k > l:
		print('Chefina')
	elif k < l:
		print('Chef')
	else:
		print('Draw')


n = int(input())
for i in range(n):
	(a, b, c, d) = list(map(int, input().split()))
	chef = a + c * 10
	chefina = b + d * 10
	if chef < chefina:
		print('Chef')
	elif chefina < chef:
		print('Chefina')
	else:
		print('Draw')


t = int(input())
for i in range(t):
	(a, b, c, d) = map(int, input().split())
	p = a + c * 10
	q = b + d * 10
	if p < q:
		print('Chef')
	elif p > q:
		print('Chefina')
	else:
		print('Draw')


for i in range(int(input())):
	(X, Y, P, Q) = map(int, input().split())
	c1 = X + P * 10
	c2 = Y + Q * 10
	if c1 < c2:
		print('Chef')
	elif c1 > c2:
		print('Chefina')
	else:
		print('Draw')


t = int(input())
for i in range(t):
	(a, b, c, d) = map(int, input().split())
	x = a + 10 * c
	y = b + 10 * d
	if x < y:
		print('Chef')
	elif x > y:
		print('Chefina')
	else:
		print('Draw')


n = int(input())
for i in range(n):
	(x, y, p, q) = map(int, input().split())
	c = x + p * 10
	cna = y + q * 10
	if c == cna:
		print('Draw')
	elif c < cna:
		print('Chef')
	else:
		print('Chefina')


T = int(input())
for _ in range(T):
	(X, Y, P, Q) = map(int, input().split())
	time_penalty_chef = X + P * 10
	time_penalty_chefina = Y + Q * 10
	if time_penalty_chef < time_penalty_chefina:
		print('Chef')
	elif time_penalty_chef > time_penalty_chefina:
		print('Chefina')
	elif time_penalty_chef == time_penalty_chefina:
		print('Draw')


test = int(input())
for i in range(test):
	(x, p, y, q) = map(int, input().split())
	chef = x + y * 10
	chefina = p + q * 10
	if chef > chefina:
		print('Chefina')
	elif chef == chefina:
		print('Draw')
	else:
		print('Chef')


T = int(input())
for i in range(T):
	(X, Y, P, Q) = map(int, input().split())
	chefTime = X + P * 10
	chefinaTime = Y + Q * 10
	if chefTime > chefinaTime:
		print('Chefina')
	elif chefTime < chefinaTime:
		print('Chef')
	else:
		print('Draw')


T = int(input())
for i in range(T):
	(x, y, p, q) = map(int, input().split())
	s = x + p * 10
	m = y + q * 10
	if s < m:
		print('Chef')
	elif s == m:
		print('Draw')
	elif m < s:
		print('Chefina')


def code():
	cases = int(input())
	for _ in range(cases):
		(X, Y, P, Q) = map(int, input().split(' '))
		penalty_x = P * 10
		penalty_y = Q * 10
		time_x = X + penalty_x
		time_y = Y + penalty_y
		if time_x < time_y:
			print('Chef')
		if time_y < time_x:
			print('Chefina')
		if time_y == time_x:
			print('Draw')
code()


t = int(input())
for _ in range(t):
	(x, y, p, q) = list(map(int, input().split()))
	t1 = x + 10 * p
	t2 = y + 10 * q
	if t1 == t2:
		print('Draw')
	elif t1 < t2:
		print('Chef')
	else:
		print('Chefina')


T = int(input())
for _ in range(T):
	(X, Y, P, Q) = map(int, input().split())
	(chef, chefina) = (X + P * 10, Y + Q * 10)
	if chef > chefina:
		print('Chefina')
	elif chef < chefina:
		print('Chef')
	else:
		print('Draw')


for _ in range(int(input())):
	(x, y, p, q) = map(int, input().split())
	x = x + p * 10
	y = y + q * 10
	if x < y:
		print('Chef')
	elif y < x:
		print('Chefina')
	elif x == y:
		print('Draw')


t = int(input())
for i in range(t):
	(x, y, a, b) = map(int, input().split())
	p1 = x + a * 10
	p2 = y + b * 10
	if p1 == p2:
		print('Draw')
	elif p1 < p2:
		print('Chef')
	else:
		print('Chefina')


for _ in range(int(input())):
	(a, b, a1, b1) = map(int, input().split())
	if a + a1 * 10 > b + b1 * 10:
		print('Chefina')
	elif a + a1 * 10 < b + b1 * 10:
		print('Chef')
	else:
		print('Draw')


for i in range(int(input())):
	(x, y, x1, y1) = map(int, input().split())
	a = x + x1 * 10
	b = y + y1 * 10
	if a > b:
		print('Chefina')
	elif a < b:
		print('Chef')
	else:
		print('Draw')


t = int(input())
for i in range(0, t):
	(a, b, c, d) = map(int, input().split(' '))
	e = a + c * 10
	f = b + d * 10
	if e > f:
		print('Chefina')
	elif e < f:
		print('Chef')
	else:
		print('Draw')


x = int(input())
for i in range(x):
	(n, m, o, p) = map(int, input().split())
	c = n + o * 10
	d = m + p * 10
	if c < d:
		print('Chef')
	elif c == d:
		print('Draw')
	else:
		print('Chefina')


t = int(input())
for i in range(t):
	(a1, b1, a2, b2) = map(int, input().split())
	c1 = a1 + a2 * 10
	c2 = b1 + b2 * 10
	if c1 < c2:
		print('Chef')
	elif c1 == c2:
		print('Draw')
	else:
		print('Chefina')


for _ in range(int(input())):
	(x, y, p, q) = map(int, input().split())
	xpenalty = x + p * 10
	ypenalty = y + q * 10
	print('Draw') if xpenalty == ypenalty else print('Chef') if xpenalty < ypenalty else print('Chefina')