Help me in solving CS2023_STK problem

My issue

what is wrong with my code

My code

# cook your dish here
t=int(input())
for i in range(t):
    n=int(input())
    O=list(map(int,input().split()))
    A=list(map(int,input().split()))
    OS=[]
    AS=[]
    for i in range(n):
        if O[i]>0:
            OS.append(O[i])
        else:
            OS.clear()
    
        if A[i]>0:
            AS.append(A[i])
        else:
            AS.clear()
    Ocount=len(OS)
    Acount=len(AS)
    if (Acount>Ocount):
        print("ADDY")
    elif (Acount==Ocount):
        print("DRAW")
    else:
        print("OM")
    
   
        

Learning course: Arrays using Python
Problem Link: Practice Problem in - CodeChef

@amulya_g09
for test case
1
7
0 0 0 0 0 0 0
0 0 0 0 0 1 0
your output is draw
but the correct answer would be addy