n, m = io.read("*n", "*n") io.read("*l") found = false for i = 1, n, 1 do s = io.read() if string.match(s, "LOVE") ~= nil then io.write("YES") found = true break end end if(found == false) then io.write("NO") end