def g n=0;gets.split.map{|c|[c.to_i,n]}end g W=g g B=g 1 l=(W+B).sort.reverse c=0 v=21 a=l.count{|i,j|i