number = gets.split(" ") a = number[0].to_i count = 0 a.times do input = gets.chomp if input.include?("LOVE") count += 1 end end if count >= 1 puts "YES" else puts "NO" end