N, M = gets.split.map(&:to_i) puts N.times.map { gets.chop }.any? { |s| s.match(/LOVE/) } ? "YES" : "NO"