bhs={} as=[] n,m,k=gets.split(" ").map{|e| e.to_i} bs=gets.chomp.split(" ") op=bs.shift c1=1 bs.map{|e| e.to_i}.sort.reverse.each{|b| bhs[b]=0 if bhs.member?(b)==false bhs[b]+=1 } n.times{ as<