S = open(0).read() if S.count("LOVE"): print("YES") else: print("NO")