gets a,b=gets.split.map(&:to_i).group_by{|i|i%2}.map(&:size) p (a-b).abs