scan = string.gmatch(io.read(),"%d+") n = scan() scan() result="NO" for i = 1, n do scan = string.gmatch(io.read(),"LOVE") if scan() then result="YES" end end print(result)