#include<stdio.h>
int K;
int a[3];
int b[3];
int f(int x,int y,int z);
int main()
{
scanf("%d",&K);
while(K–)
{
for(int i=0;i<3;i++)
scanf("%d",&a[i]);
for(int i=0;i<3;i++)
scanf("%d",&b[i]);
int l,B;
l=f(a[0],a[1],a[2]);
B=f(b[0],b[1],b[2]);
if(lB) printf(“Draw\n”);
else if(l>B) printf(“lcy\n”);
else if(l<B) printf(“Ypop\n”);
}
return 0;
}
int f(int x,int y,int z)
{
int ans=0;
if(xy&&xz)
{
if(x1) x=7;
ans=100+x;
}
else
{
if(xy||xz||yz)
{
int t,r;
if(xy)
{
t=x;
r=z;
}
else if(xz)
{
t=x;
r=y;
}
else if(yz)
{
t=y;
r=x;
}
if(t1) t=7;
if(r1) r=7;
ans=10*t+r;
}
else
{
ans=x+y+z;
}
}
return ans;
}