Help me in solving FOURTICKETS problem

My issue

it is giving me YES for every output

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
		int t;
    cin>>t;
    for(int i=0;i<t;i++)
    {
        int x;
        scanf("'%d\n",&x);
        x=x*4;
        if(x<=1000)
        {
            printf("YES\n");
        }
        else if(x>)
        {
            printf("NO\n");
        }
    }
	return 0;
}

Problem Link: FOURTICKETS Problem - CodeChef

just write else instead else if
And
near scanf ā€œ%dā€ instead of " ā€™ %d"