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