def main():
f=int(input())
n=int(input())
x=list(map(int,input().split()))
for i in range(n):
if f==0:
if x[i]==2:
print(f,end=' : ')
print('Won at round',i+1)
break
if x[i]==5:
print(f,end=' : ')
print('Lost at round',i+1)
break
if f==2:
if x[i]==5:
print(f,end=' : ')
print('Won at round',i+1)
break
if x[i]==0:
print(f,end=' : ')
print('Lost at round',i+1)
break
if f==5:
if x[i]==0:
print(f,end=' : ')
print('Won at round',i+1)
break
if x[i]==2:
print(f,end=' : ')
print('Lost at round',i+1)
break
if f==x[i] and i==n-1:
print(f,end=' : ')
print('Drew at round',n)
break
elif f==x[i]:
print(f,end=' ')
if x[i]==x[i-1] and i>0 :
if x[i-1]==0:
f=5
elif x[i-1]==2:
f=0
else: f=2
else: f=x[i]
main()