puts gets.to_i.times.map{gets}.any?{|s|s=~/LOVE/} ? "YES" : "NO"