class Program { static void Main(string[] args) { string[] input = Console.ReadLine()!.Split(' '); int count = int.Parse(input[0]); bool judgment = false; for (int i = 0; i < count; i++) { string word = Console.ReadLine()!; if (word.Contains("LOVE")) { judgment = true; } } if (judgment) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } }