def love(params) !params.index('LOVE').nil? ? 'YES' : 'NO' end def strs strs = [] num = gets.split(' ').first.to_i num.times.each do strs << gets end strs.join(' ') end puts love(strs)