NZEC in Python

I kept getting NZEC in Python for problem.

code:

def main():

    N=int(input())

    M=int(input())

    a=0

    for i in range(N):

        num=input()

        a,b,c,d=num.split(" ")

        if M in (a,b,c,d):

            a=1

    if a==1:

        print("YES")

    else:

        print("NO")

    return 0

if **__name__ == "__main__"**:

    main()



You can look at all my codes at : tries

Ok,I got the answer. Thanks to anyone who tried to solve it :slight_smile: