Help me in solving BMCV2C09 (Construct N as a sum of 2's and 7's) problem

My issue

Can someone help me with the solution to this problem? The provided solution only works if N lies between 1 and 10.

My code

// Solution as follows

#include <bits/stdc++.h>
using namespace std;

int main() 
{
	int t;
    cin >> t;
	
	while(t--)
	{
	    int N;
	    cin >> N;
	    if (N == 1 || N == 3 || N == 5)
	    {
	        cout << "No" << endl;
	    }
	    else
	    {
	        cout << "Yes" << endl;
	    }
	}
}

Learning course: C++ for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone

@aakangsha
Why u think so that it will only work for n<=10 .
Its a valid solution for all constraint.
Have to came up with the test came that will fail for this solution??