N,=gets.split(/\s/).map(&:to_i) puts (0...N).map{gets.include?("LOVE")}.include?(true) ? "YES" : "NO"