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