print("NYOE S"["LOVE"in "".join([input()for _ in range(int(input()[0]))])::2])