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