for i in range(int(list(input().split())[0])): if input().find("LOVE") != -1: print("YES") exit() print("NO")