using System; using System.Linq; namespace App { class Program { static void Main(string[] args) { bool f = false; for (int i = Convert.ToInt16(Console.ReadLine()); i > -1; i--) { var a = Console.ReadLine(); if (a.IndexOf("LOVE") >= 0) { f = true; } } if (f) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } } }