NZEC Error and EOF Error, How to solve it ?

beginner
nzec
python3

#1

t=int(input())
while(t>0):
appy=0
chef=0
n, a, b, k = raw_input().split(" ")
n = int(n)
k = int(k)
a = int(a)
b = int(b)
for i in range(1,n+1):
if(i%a==0 and i%b!=0):
appy=appy+1
elif(i%b==0 and i%a!=0):
chef=chef+1
if((appy+chef)<k):
print (“Lose”)
else:
print(“Win”)
t=t-1