Help me in solving BMC09 problem

My issue

My code

# Update the code below to solve the problem

t = int(input())
for i in range(t):
    N = int(input())
    if N==1 or N==3 or N==5:
        print("No")
    else :
        print("Yes") ```
Learning course: [Python for problem solving - 2](https://www.codechef.com/learn/python-beginner-v2-p2)
Problem Link: https://www.codechef.com/learn/BP00BP26_V2/problems/BMC09
If I run this code it says that 15 can be written in the form 15 = 2*X + 7*Y. But it is not possible to write it that way. I wrote a code that says 15 can’t be written but when I submit my answer is wrong. Can someone please help me with this
My code is as follows.
t = int(input())
for i in range(t):
    N = int(input())
    if N%2==0 or N%7==0 or (N%7)%2==0:
        print("Yes")
    else :
        print("No")

@rsm47
15 can be written as 2 * 4 + 7 * 1 =15

Thank you so much for your reply