n, m = gets.split.map(&:to_i) p n.times.map{gets.chomp}.map { _1 =~ /.*(LOVE)/ }.none? ? "NO" : "YES"