inputer = input() inputer_s = inputer_s.split(" ") n_num = int(inputer[0]) count= 0 for couter in range(n_num): search_s = input() if search_s.count('LOVE')>0: count= count+1 if count>0: print("YES") else: print("NO")