import sequtils, strutils

let
  nm = stdin.readLine.split
  n = nm[0].parseInt
  xs = (0 ..< n).mapIt readLine stdin

echo if xs.anyIt (it.find "LOVE") != -1: "YES" else: "NO"