import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int q=in.nextInt(); boolean flag; int x,y,x1 = Integer.MIN_VALUE,y1 = Integer.MIN_VALUE,x2=Integer.MIN_VALUE,y2=Integer.MIN_VALUE; while(q-->0){ flag=true; int n=in.nextInt(); if(n<3) System.out.println("YES"); } } }