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