Skip to content

Instantly share code, notes, and snippets.

@saharshg29
Created September 1, 2022 18:15
Show Gist options
  • Save saharshg29/644bdbbdae78e7383970eca0bb5c39b4 to your computer and use it in GitHub Desktop.
Save saharshg29/644bdbbdae78e7383970eca0bb5c39b4 to your computer and use it in GitHub Desktop.
/* package codechef; // don't place package name! */
import java.util.*;
class Codechef
{
public static void main (String[] args)
{
Scanner input =new Scanner(System.in);
int t=input.nextInt();
for(int i=0;i<t;i++)
{
int N=input.nextInt();
if(N<=4){
System.out.println("YES");
}
if(N>=4){
while(N>=4){
N=N-4;
}
if(N==0){
System.out.println("NO");
}
else{
System.out.println("YES");
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment