T= int(input())
for i in range(T):
n= int(input())
s=input().split()
count = 0
what = 0
for i in s:
if i == s[0] :
count=count+1
elif i == s[1]:
what = what+1
if count==what :
print('Draw')
elif count>what :
print(s[0])
else :
print(s[1])