Help me in solving NEWSPAPER problem

My issue

why my code doesn’t work

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin >> t;
	while(t--)
	{
	    int x ;
	    cin >> x;
	    
	    if(x <= 7)
	    {
	        cout << "NO" << endl;
	    }
	    else
	    {
	        cout << "YES" << endl;
	    }
	    
	}
	return 0;
}

Problem Link: NEWSPAPER Problem - CodeChef

@esha2345
u don’t need to take test cases as input in this problem.