using System; using System.Text; namespace y { class Program { static void Main(string[] args) { var n = Console.ReadLine().Split()[0]; var sb = new StringBuilder(); for (int i = 0; i < 2; i++) { sb.Append(Console.ReadLine()); } Console.WriteLine(sb.ToString().Contains("LOVE") ? "YES" : "NO"); } } }