N=input() cnt=int(N[0]) i=1 ans="NO" while i!=cnt: word=input() if "LOVE" in word: ans="YES" break else: ans="NO" i+=1 print(ans)