defmodule Main do def main do [n, _] = IO.read(:line) |> String.trim() |> String.split() |> Enum.map(&String.to_integer/1) 1..n |> Enum.map(fn _ -> IO.read(:line) |> String.trim() end) |> solve |> IO.puts() end def solve(s) do cond do s |> Enum.any?(&(&1 |> String.contains?("LOVE"))) -> "YES" true -> "NO" end end end