Bro=[]
Sis=[]
Bro.append(int(input()))
N=int(input())
Sis=list(map(int,input().split()))#;print("Sis",Sis)
i=0;sString=""
while (i<N):
sString+=str(Bro[i])
sString+=" "
if (Bro[i]==0 and Sis[i]==2 ) or (Bro[i]==2 and Sis[i]==5 ) or(Bro[i]==5 and Sis[i]==0 ):
print(sString+":"+" Won at round "+str(i+1));break
elif (Bro[i]==2 and Sis[i]==0) or (Bro[i]==5 and Sis[i]==2 ) or (Bro[i]==0 and Sis[i]==5 ):
print(sString+":"+" Lost at round "+str(i+1));break
else:
if i==0:
Bro.append(Sis[i])#;print("Bro",Bro)
if i>=1:
if Sis[i]!=Sis[i-1]:
Bro.append(Sis[i])
else:
if Sis[i]==0 and Sis[i-1]==0:
Bro.append(5)
if Sis[i]==2 and Sis[i-1]==2:
Bro.append(0)
if Sis[i]==5 and Sis[i-1]==5:
Bro.append(2)
if i==N-1:print(sString+":"+" Drew at round "+str(i+1));break
i+=1#;print("i",i)