using System; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var p = new bool[n]; var r = new bool[n]; var input = Console.ReadLine(); if (input == "Yes") p[0] = true; else p[0] = false; for (int i = 1; i < n; i++) { input = Console.ReadLine(); if (input == "Yes") p[i] = true; else p[i] = false; } for(int i = n - 1; i >= 0; i--) { r[i] = p[i]; for(int j = i + 1; j < n; j++) { r[j] = r[j] == p[i]; } } for (int i = 0; i < n; i++) { Console.WriteLine(r[i] ? "Yes" : "No"); } } }