import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); boolean[] isTrue = new boolean[N+1]; for(int i = 1 ; i <= N ; i++){ String yOrN = sc.next(); if(yOrN.equals("Yes")){ isTrue[i] = true; }else{ isTrue[i] = false; } } if(isTrue[1]){ System.out.println("Yes"); }else{ System.out.println("No"); } for(int i = 2 ; i <= N ; i++){ if(isMatch(isTrue , 1 , i) == isTrue[1]){ System.out.println("Yes"); }else{ System.out.println("No"); } } } private static boolean isMatch(boolean[] isTrue , int l, int r){ if(l != r){ if(isMatch(isTrue , l+1 , r) == isTrue[l]){ return true; }else{ return false; } }else{ return isTrue[r]; } } }