a=[] b=[int(i)for i in input().split()] c=0 for i in range(b[0]): if "LOVE" in input(): c+=1 if c==0: print("NO") else: print("YES")