I need help, I am getting Runtime error NZEC after submitting this code.
t=int(input())
for z in range(t):
values=input().strip().split(" “)
n=int(values[0])
count=0
power=int(values[1])
villager=input().split(” ")
for i in range(n):
villager[i]=int(villager[i])
while power>0 and sum(villager)>0:
attacker=max(villager)
index=villager.index(attacker)
power = power - attacker
villager[index]=villager[index]//2
count=count+1
# print(count,villager)
else:
if power>0:
print("Evacuate")
else:
print(count)